Coffee is fine. Monastics and acestics have used it as a tool to decrease libininal impulses. Authors have used it to write volume after volume. Artists have used it as creativity fuel. Kant wrote his Critiques on the stuff. The sheer delight and pure simple innocent joy gained of drinking it in the woods is beyond compare.
Masturbarion, especially habitual masturbation with pornography or any synthetic stimuli, is horrible for you, drains energy and makes you a hypersexual, good for nothing, cumbrain.