The cure: respect God, respect yourself, respect others. Sexual union is the spouses' wedding gift of love --- to each other.
Don't do the nasty. Do the lovely.
There was a time it was generally understood that if you don’t sleep with anyone you’re not married to, you avoid all manner of complications.