to understand scripture perfectly, to know the fullness of the gospel, we have to discover the answer to the question, who is Romans 4:5 written about?
5 However, to the man who does not work but trusts God who justifies the wicked, his faith is credited as righteousness.
Rom 4
There is a confusion here in language. Paul is talking about working for wages, not good works done
from a heart of love, because one wants to with no sense of obligation or a desire to get recognition.
Paul is saying we are given a gift by God, because we have put our faith in Him, righteousness.
But part of this faith is the acknowledging love is expressed through action, it is not just nice thoughts
and intentions, but actual help and delivery of good things. The world is full of people with good intentions
and evil actions, a rosy view of a doomed condition.
What you are pointing at is a common mistake made, confusing different uses of a word like work, and not
acknowledging the power of its context and meaning. But as with all things in God, He is happy to let those
who wish to construct excuses to do this, one less to consider in eternity. God bless.