I knew a man who fantasized in lust for a woman in the church fellowship while he masturbated, and whenever he came to church and saw the woman, he blushed with shame. So, this IS a danger for sure. When a husband and wife are separated against their will and one is having severe temptations with lust, masturbation can serve as a release for those drives. This has saved many men from infidelity. In that sense, and I suppose I shall be thrashed for this, I suggest that masturbation is a very useful solution.
Masturbation is also a release to young unmarried men.
We just don't like to admit it. Many a young man has defused a setting for fornication by masturbating ahead of time. Cold showers are fine, but they don't last. Of course, a young man can further help this struggle greatly by making sure he is only found in modest company. Masturbation can also be therapeutic according to one report I read.