Romans 7 is a rich text that has some very deep truths about sin and the law. Some phrases that stick out to me are these: “Sin, taking opportunity through the commandment, produced in me coveting of every kind...” and “…when the commandment came, sin became alive and I died” and finally “…sin, taking opportunity through the commandment, deceived me and through it killed me” (Rom 7:8, 9, 11 NASB). Herman Ridderbos has some helpful comments on these verses:
It is not the law itself, therefore, which is sin. But sin avails itself of the law as its starting point, that is to say, sin – here thought of as a personified power – gets its opportunity through the law. For the law forbids sin. Consequently, when the law comes on man with its prohibition, sin springs into action and awakens in man the desire for what is forbidden by the commandment. In that sense it can be said that the desires are ‘by the law’ (v. 5). Thus it can also be understood that sin is ‘dead’ apart from the law, that is, sin asserts itself in man only when the law comes to him with its prohibitions. Then sin begins ‘to live’ (v. 9), it stirs from its slumbering, its resistance awakens to the power that is bent on bridling it.
What is written in 1 Corinthians 15:56 applies here as well: ‘the strength of sin is the law.’ Without the law sin would not have been able to make men rebellious and lawless. For this reason it can also be said that sin, starting from the law, deceives man. By holding up the commandment to man as the end of his liberty and by promising him life in the transgression of the commandment, sin draws man under its enchantment. It promises him just that which the law appears to take away, and leads him thus into death.
Herman Ridderbos, Paul: An Outline of His Theology, p. 144.