Ro:7:18: For I know that in me (that is, in my flesh,) dwelleth no good thing: for to will is present with me; but how to perform that which is good I find not.
Ro:7:19: For the good that I would I do not: but the evil which I would not, that I do.
Ro:7:20: Now if I do that I would not, it is no more I that do it, but sin that dwelleth in me.
Ro:7:21: I find then a law, that, when I would do good, evil is present with me.
Ro:7:22: For I delight in the law of God after the inward man:
Ro:7:23: But I see another law in my members, warring against the law of my mind, and bringing me into captivity to the law of sin which is in my members.
Ro:7:24: O wretched man that I am! who shall deliver me from the body of this death?
Ro:7:25: I thank God through Jesus Christ our Lord. So then with the mind I myself serve the law of God; but with the flesh the law of sin.
I think you need to back up to verse 18 and get the scripture in context.
Paul is talking about struggling with the flesh and how he knows in his heart that he should do good, see vs 22, but he struggles with actually doing that which is good, see vs 23. I think, also, he is struggling with following the law of the Jews, and being under grace. Growing up Jewish he had to follow the law to get into Heaven. But Christ died so that we need not depend on the law to get us to Heaven, but the shed blood of Jesus Christ. He is saying in vs 22 that he loves the law, like David did in the Psalms, however to break on law one was guilty of them all
James 2:10 For whosoever shall keep the whole law, and yet offend in one point, he is guilty of all. Paul realizes this as we see in vs 24, but the good news is Jesus Christ our Lord shed his blood for all sin. And Paul is thanking Him. And saying that he will continue to follow the law in his head, but knows it is not the way to Heaven.
Disclaimer: I wrote this in 5 minutes with as much time spent in thought. I have to go to practice. If I am a heretic,

sorry and feel free to correct me. I have a bunch of scripture in my head for this. Pray I don't forget them. I'm getting old.
.
