To use an analogy, we encourage people not to be violent, but at the same time, it's not a bad idea for people to know how to defend themselves, is it?
Similarly, abstinence should be what is encouraged, but they should know how to protect themselves if necessary.