“So then, the law is holy, and the commandment is holy, righteous and good.”
Romans 7:12 NIV
The Law ( God’s commandments) are not the problem. Sin is!
God gave the Law to the Jewish people so they could get an understanding of His character. God also gave the Law so sin could be revealed. The Law was intended to point out to all of us how much we need a Savior.
For example the Ten Commandments:

These are good moral laws that we should abide by, but have we?
If we have broken just one, we have become a lawbreaker. We have sinned.
The problem is not the Law, that is “holy, righteous, and good.” The problem is us. We are all sinners desperately in need of a Savior, and our Good God has provided for that need — Jesus!
Thank You Father for sending Jesus! What we could not do on our own, You did for us. Long ago You gave us Your Law so that we could understand how much we need You to give us a new heart — a heart that desires to obey You! Thank You for Your gift of salvation that changes everything in our lives and helps us to walk after Your Way!