Proverbs 13:6 (KJV)

Righteousness keepeth him that is upright in the way: but wickedness overthroweth the sinner.