jn 832
Thats the point, God never gave it in the first place for humans to try to keep it, the Purpose was to expose man's inability to keep it, beginning with Adam, and to point them to the One and Only one who was to keep it fr the Glory of God !
Just out of curiosity, what translation are you reading?
Lev 18:5 Ye shall therefore keep my statutes, and my judgments: which if a man do, he shall live in them: I am the LORD.
Deu 5:29 O that there were such an heart in them, that they would fear me, and keep all my commandments always, that it might be well with them, and with their children for ever!
Psa 19:7 The law of the LORD is perfect, converting the soul: the testimony of the LORD is sure, making wise the simple.
Psa 19:8 The statutes of the LORD are right, rejoicing the heart: the commandment of the LORD is pure, enlightening the eyes.
Psa 19:9 The fear of the LORD is clean, enduring for ever: the judgments of the LORD are true and righteous altogether.
Psa 19:10 More to be desired are they than gold, yea, than much fine gold: sweeter also than honey and the honeycomb.
Psa 19:11 Moreover by them is thy servant warned: and in keeping of them there is great reward.
Isa 42:21
21The Lord is well pleased for his righteousness' sake; he will magnify the law, and make it honourable.
Interesting way to say do away with them...
New International Version (©1984)
It pleased the LORD for the sake of his righteousness to make his law great and glorious.
New Living Translation (©2007)
Because he is righteous, the LORD has exalted his glorious law.
English Standard Version (©2001)
The LORD was pleased, for his righteousness’ sake, to magnify his law and make it glorious.
New American Standard Bible (©1995)
The LORD was pleased for His righteousness' sake To make the law great and glorious.
GOD'S WORD® Translation (©1995)
The LORD is pleased because he does what is right. He praises the greatness of his teachings and makes them glorious.
Douay-Rheims Bible
And the Lord was willing to sanctify him, and to magnify the law, and exalt it.