Judge orders child rapist: No sex before marriage