I sincerely doubt that any of the people involved in these sex scandals didn't know they were playing with fire and as we've seen, many have been burned with more to come. The fact is, for most people there's an inner voice that lets us know we're leaning the wrong direction. We get a little mental heads-up when we're about to do the wrong thing.
Some people call this our conscience, some believers like me, think it's the Holy Spirit guiding us to do the right thing. The bottom line is we feel the heat coming our way and we have a chance to run from it. Another good lesson from the Bible when encountering things that aren’t good for you is to not just walk away, run away and don’t look back!
Regardless of whether someone gets caught for doing a dirty deed and they get embarrassingly burned in their world of co-workers, family, friends, etc., they’ll still feel the pain as they often end up burning up on the inside and those flames are the hardest to put out.
If you want pretty much all the answers to making good choices in your life so you can avoid unnecessary pain, go to Amazon and buy a book which covers the book of Proverbs from the Bible; I promise you, you'll be glad you did. By the way, even an atheist would love the insight in there.