If you remember the fact that every sin can result in hellfire, you will then avoid committing such sins. Whenever your evil desire tells you to watch such videos or to masturbate, go to your kitchen and make your hands near a fire, and see how much you can tolerate that,then ask yourself: Can you tolerate the hellfire? No one can tolerate the hellfire but some people try to forget it before committing sinful acts.
Remembering the definite results of our deeds should make us aware and away from sinful acts
Wassalam.