It can help me to see how the wrong thing can hurt me and others. I mean, it can interfere with how I could love someone the way God wants.
And trust God to keep me from doing it. And see how God has me loving, instead.
And keep seeking our Heavenly Father to change my character so I am not available to doing wrong things.