This question can be answered with examples, and I intend to start with this one.
Making children is not always the right thing to do. Because one cannot always handle the family members these children might become! Therefore, it is oftentimes wrong to have sex. But having sex the wrong way for making kids would obviously solve the problem of unmanagable families.
I used the word "oviously" in the last paragraph, and perhaps I shouldn't have. According to some survival-of-the-fittest believers, there would always be an evolutionary advantage in having many children. I don't think they have a point good enough for real life.
Either way, chanalizing mistakes into more mistakes is a problem-solving strategy that may only sometimes work well. If I, or you or whoever, feel like having sex, but not for having kids, most of us could either get into somesex acts thattend not to involvea suitable mate, but perhaps an illusion of one.
What this illusion is may differ from person to person. These differences, in turn, may build up with the problems of one person being keener on having sex than the other. Then, the two problems can add up to worsening social difficulties.
I, for one, feel that it is awful that some people want to strengthen their own such channalisations as if for example I would be into very similar ones. I mean that I, just like almost anybody, can experience that I did not have a wrongful sexual urge to begin with, and then some weird friend would pretend I was the same as he or she was. ... I believe that I am very far from alone in thinking so, in feeling this way or in having such a problem!
I also believe that many kinds of problems are usually solved with counter problems, that may, in turn, cause damage to others, that had little or no initial problem of that same kind. I brought up a sensitive issue of which I expect that almost anybody has some kind of experience. If not, then, perhaps the double wrong of being very anti-sex oriented, so that there will not be a natural instinct, is ever so likely to be the solution of too much sex that can also cause social problems. ...