I went to a urologist and they said I could have epididymitis and the pain has subsided since that day. It is still slightly uncomfortable but not painful and I’m wondering if it’s okay to have sex or masturbate in this current state.
Ask your doctor but it is my understanding that you should NOT have intercourse during this time. I'd personally hold off until you are done with your medication from masturbation as well. It's not that long.