Please look for other, safer, ways to relieve that loneliness that feels overwhelming to you. Join a local club ~ book club, exercise, art, music, etc.; call a friend/or support group; start working with a Therapist to help you come up with a longer list of "safe" alternatives to do when those impulses strike.
I fight intense impulses as well, so I can relate.

Please do be careful.