>>11814628>You literally can't. It makes you apathetic and distracted. Before you do it you're horny and after, you're fatigued and unmotivated.All those could also apply to eating a rich meal or using mild drugs or whatever. Everything in moderation. Especially if you restrict masturbation and/or sex to right before you plan to sleep for the night, I think it's probably fine. If anything it could be a net positive if you normally have trouble falling asleep, because it could improve your sleep time and quality.
But, yeah, if you're doing it compulsively during the day (either sex or masturbation), it'll affect you in that way.