Masturbating frequently presents no physical, mental or emotional risk in itself, but masturbation can be used to relieve boredom or stress. In either case, as with any "nervous habit", it is more helpful to consider the causes of the boredom or of the stress, rather than try to repress the behavior itself, in this case masturbation.