Interesting concept.
What I understand is slightly different. I believe the Law was given to reveal our unrighteousness. According to Scripture, without the Law, our sinfull nature is not revealed. He did not 'order' us to do anything. He simply gave us a guideline, whereby we could attain fellowship, with Him. He knew, however, that He gave us a 'will', a choice. He allowed us to make our own decisions, about everything.
In order to become 'righteous', we can do nothing. We can only respond to His beckoning, and believe. Even once we are 'saved', we still are living as 'sinful' creatures. WE are just forgiven. I will be happy to add the verses, if you think I am incorrect.
...not of works, lest any man shall boast!
Man has freewill,of course, but that doesn't negate the fact that GOD and Jesus gave a whole lot of laws, rules, and lectures.
Unlike Rousseau, GOD doesn't seem to think that all men are inherently " good " and left alone, will be "GOOD".
And as far as becoming " righteous ", doing NOTHING, isn't what GOD and Jesus the Chrdist had in mind. Neitherf is it what millenias of priests, Rabbis, and pastors has exponded upon from an alter.