Masturbation is to be limited or stopped completely. Whenever I used to masturbate I would get a headache/backache, problems with racing thoughts, weakness, tiredness, low energy, feeling empty, etc. I had to limit the amount I masturbated in my early twenties because I realized that the reason I felt so much anxiety and other problems was because I was masturbating 2+ times a day. It does have some benefits, but if you weigh them against the cons it seems clear that it is harmful and a waste of time. However, sex with a partner would not be a waste, as you are connecting on a physical level with someone you're attracted to.