We need to be given a new heart in order to enter into an intimate relationship with God. He is holy, and we cannot earn righteousness—but He is merciful.
God warned the Israelites of the consequences of disobedience. But the tangible idols of this world drew their hearts away from Him, just as they do ours.
What was the purpose of the Law, and how were Old Testament believers saved? The Law points to our need for grace before a holy God, and the foundation of salvation has always been Christ.