So is a nasty thought towards someone, both the thought and the act of murder deliver the same outcome: death.
Live according to the law and die through that same law. No one can obey the law and a personal righteousness was not the purpose or the goal of the law. The law delivers the knowledge of sin and death, anyone who dwells on the law should realize that they are evil and deserve rightly to die for their sin.
The law simply announces the need for the messiah, nothing more and nothing less.
The Christ is what the scripture is all about.
John 5:39
You search the Scriptures because you think that in them you have eternal life; it is these that testify about Me.
We are justified and sanctified already through and in Jesus Christ, already we are seated with Christ in the heavenly realms.
The question is not how do I live a holy life rather we were given the very righteousness of Christ, when we first believed in Jesus.
The Christian life is a life of thankfulness, a life of rejoicing in what Christ did for us.
The alpha and the omega of all doctrine, the Christ first and last. It is not about, 'thou shall not covet', which results in death. We are led by the Holy Spirit in our walk, not the letter of the law.