Righteousness keepeth him that is upright in the way: but wickedness overthroweth the sinner.
Righteousness keepeth (him that is) upright in the way - of life and of safety. He needs no other defenses.
But wickedness overthroweth the sinner - Hebrew, 'sin:' the abstract for the concrete (cf. note, Proverbs 10:29). 'Sin' is the very element of the sinner. He is the slave of sin, and gets sin's wages, death (Romans 6:23).