Proverbs 6:24-25 To keep thee from the evil woman, from the flattery of the tongue of a strange woman. Lust not after her beauty in thine heart; neither let her take thee with her eyelids.
Get into the Bible and get the Bible into you and it will protect you from sin. Do not just read it but read it with a heart to open it as the Lord brings it to your heart.
There are instructions here that will keep you from getting with the strange woman. The strange woman is any woman except for the wife of your covenant. The strange woman is any one but your wife.