Temptations can come in different forms. There are some things that is best for us to avoid so that we don't fall into temptations. Some things may initially be done with no evil in heart. The devil knows how to take advantage of some situations. Abstinence is advised between a male and a female who are not married. Many unwanted pregnancy that happened today was as a result of closeness between the opposite sex.
If it is something that happens in a case whereby either of them are in serious need of assistance from the other then it may be understandable. But if it is something but if it is an that goes on repeatedly then it is not advised that such should continue happening. Some things are capable of going on that are out of our control but it wouldn't have happened if we hadn't created a room for such a thing to occur.
We should be disciplined as Christians. Some actions we take may lead to an unexpected results that we may end up regretting later in the future. Some people are too quick to blame the devil for some things that happen but they are the one to blame because if they hadn't done what they did such results wouldn't have occurred.
In the days of old when morals was still held at high esteem such things we are not allowed to happen but unfortunately in our present times it has become a common thing. But as believers we should not follow this pattern.