Righteousness comes from listening to God. There is nothing righteous about doing what you think the safest thing is and assuming God is signing off on that. For example, if a couple says ‘Obviously God thinks sex is dirty, so we won’t kiss until our wedding day’ that is no more righteous than going too far physically. In both cases, you are putting your own desires (safety or sexual release) in front of asking God what He wants.
Jed Brewer on episode 89 of the Say That podcast