Pro 11:5-6, 5 The righteousness of the blameless keeps his way straight, but the wicked falls by his own wickedness. 6 The righteousness of the upright delivers them, but the treacherous are taken captive by their lust.
Righteousness simply means right standing with God. This is only possible through Christ, who credits His righteousness to our account for us to stand before God. Not only does it secures, it also leads and preserves.
His righteousness is blameless and keeps those He secures on the straight way, “Righteousness will go before him and make his footsteps a way” (Psa 85:13). He also keeps them upright focused on Him for there in is deliverance from the snares of the enemy.
A living principle of honesty and grace will be our best direction in the right way and our best deliverance from every false way. The possibility of this walk is to entrust oneself to One greater. That is the only hope to be and remain righteous.