I'll say this again like I've said it before. Righteousness doesn't come by the law because righteousness only lies in following the whole law and it is impossible to do the whole law.
You are still righteous if you follow the law to the best of your ability. It doesn't save you on its own, but you are more righteous.
Breaking the law over and over doesn't make you more righteous. The law only shows that you CAN'T keep it.
Read Matthew 5. Its abundantly obvious.
Romans 4:4-8
4 Now to him that worketh is the reward not reckoned of grace, but of debt.
5 But to him that worketh not, but believeth on him that justifieth the ungodly, his faith is counted for righteousness.
6 Even as David also describeth the blessedness of the man, unto whom God imputeth righteousness without works,
7 Saying, Blessed are they whose iniquities are forgiven, and whose sins are covered.
8 Blessed is the man to whom the Lord will not impute sin.
Would you rather work for your own Righteousness or have God Impute His Righteousness to you?
You can't have both. You can't have Gods Imputed Righteousness plus your dirty rags. You either get your dirty rags or Gods Imputed Righteousness.
You are free to work for your own Righteousness. Just don't be under the delusion that it will make you "more" righteous than what God Imputes to us.
Galatians 3:3 Are ye so foolish? having begun in the Spirit, are ye now made perfect by the flesh?