Sex is part of human nature. It used to happen before Humans invented the notion of marriage. The church is trying to stop something that is intrinsically a part of us, that is a bad strategy and is actively making the world a WORSE place.
A better idea would be to encourage people to use condoms. This does not circumvent human nature and has a much better chance of working.
Don't defend ill thought out policy with bad logic.