Rom5.20: But then Law came in, [only] to expand and increase the trespass [making it more apparent and exciting opposition]. But where sin increased and abounded, grace (God’s unmerited favor) has surpassed it and increased the more and superabounded.
God fore knew that man could never keep the law based on man’s own efforts, so at the fullness of the law era, he brought in Grace where righteousness shall not be placed on man but on God himself
Man can never keep the law even at 10% and the bible says he who is guilty in one, is guilty in all.
So forget trying to be righteous thru your own effort by keeping the 10 commandments but let your righteousness by based on Jesus. Plug into His Grace, live by His Grace.
Jesus is the answer.