There are what we call "Ten Commandments."
They are imprinted within every human.
However, these commands do not result in folks following them any more then the Israeli of the ancients to the modern day follow them.
It is not God preventing repentance, but human rebellion obliging dismissal and disregard of the work of the Holy Spirit.
What was/is the primary work of the Holy Spirit?
To convict and convince the world was it not?
Of what was this conviction and convincing work in the world? Sin, righteousness, judgement.
(Note: Some consider the Holy Spirit also directs people to Christ. Personally, I don't see that evidenced in Scripture. Rather, the Scriptures are what point to the need for Christ and through the work of the Scriptures, the Holy Spirit awakens (quickens) that which was dead that the gift of faith may be delivered and that new birthed believer proclaim.)
Therefore, knowing the humankind are all chasing after evil, the Father graciously gives to the Son.
No one comes to the Father accept those the Father gives to the Son. That is two Scripture verses placed in the same sentence.
Within that coming is the "Godly sorrow" of the believer which also brings a desire for cleansing and to accept cleansing.
Those not of the believers, who can only sense sin, righteousness and judgement, what value has worldly repentance?