“Because the law worketh wrath: for where no law is, there is no transgression” (Romans 4: 15).
A lot of the Jews were mistaken to think that by obeying the law, they could attain righteousness, whereas the purpose of the Law was the direct opposite- condemnation. The law was made to make the sinner aware of his sins, so he can admit that he needs a savior (Romans 7:9). This is why Paul called the law the ministry of condemnation (2 Cor 3:9). Also, to the Romans he says: “There is therefore now no condemnation to them which are in Christ Jesus, who walk not after the flesh, but after the Spirit…For what the law could not do, in that it was weak through the flesh, God sending his own Son in the likeness of sinful flesh, and for sin, condemned sin in the flesh” Romans 8:1, 3. Again, he referred to the regime of the law as a regime of condemnation.
Paul not only called the law the ministry of condemnation (see 2 Corinthians 3:7), he also called it the ministry of death. The law never gave life (which was to be the reward of righteousness). Moses describes this way, the righteousness that is by the law: “The man who does these things will live by them.” (Romans 10:5, NIV). Well, nobody was ever able to be blameless after the law of Moses. As such, the law only produced death. “For I was alive without the law once: but when the commandment came, sin revived, and I died” (Romans 7: 9).