Ask yourself, the momentary pleasure obtained through sexual gratification, will it be binding or will it help in my liberation? Use your wisdom to understand your sexual energy. Question your mind using your discriminative wisdom, for sex is nothing more than a transient momentary pleasure.
Convert the sexual energy for your spiritual growth. The energy is the same, and it is your choice if you want to waste it or make it rise up through spiritual practices.
If the seed of sexual desire resides in your mind, it will come out on the slightest pretext. So, the fact that it is manifesting as sexual urge means that you need to accept the presence of sexual desire in you. Now you can either strive to get liberated from it or opt to get more entrenched in it.
Sex too is energy. If it flows downward it will be wasted, but if it ascends then it will energize you, invigorate you.