You cannot get this knowledge directly. Please go to a spiritual master and ask these questions. Even injecting urself with poison is easy. So why dont try it?
Sex is not bad. Sex outside marriage is bad. Its animal charater to mate, eat, sleep and defend. We are higher than animals (some of us are). So we should learn to discriminate the habits.