Make it a habit to always repent the thoughts of the actions you have not taken which you perceive are sinful. You get a certain grace released to restrain you. Most of our battles are either won or lost in the mind. Remember what Jesus said,.. if you hate your neighbor, you are guilty of murder, if you look at a woman lustfully you are guilty of adultery.
If you invest a lot of time thinking about something, chances are you will do it with or without your will involved. I pray for you to receive Grace from the almighty to Guard your heart, even as you hold every thought captive to Jesus Christ.