Thanks for your query.Based on the facts that you have posted it appears that you have been under treatment of infertility
specialist for IVF.
You claim your sperm motility
to be 25 %. If it is a active motile sperm count
, it is within normal acceptable limits for IVF.
For IVF you need to have abstinence of 3 days prior to semen collection .So avoid masturbation
at least for 3-4 days prior to IVF.
In the mean while you can masturbate up to your satisfaction .