The trust of the righteous is in the Lord who made heaven and earth, because he walks in God and stands firm on the rock, and it is by that firm rock that many stand today. BUT the wicked, because of their evil way, will be broken before the Lord.
The way of the wicked leads continually to evil, that is why we see this psalm of David speaking to the righteous so that he does not become impatient with all the injustice he sees on the part of the evil man. The Lord will make the way of the wicked man perish.
In the following biblical verse we can see that the psalmist had all his trust in God and through this he saw the justice of God acting in his favor.