Hi Hope you are doing well. Severaly measure you should do especialy at night Some time you may get templeted at night and once you tried to get sleep you unable to fall in sleep. You may do one of the following. 1) *Think About What's Going To Happen After You Cheat you body and brain* 2) *Ask Yourself What You You'll Gain By doing so.* 3) *close the pc and phone* 4) *divert the sex thought immediately with reproductive one* 5) *go and get cold shower* 6). *If the temptation seems overpowering while you are in bed, GET OUT OF BED AND GO INTO THE KITCHEN AND FIX YOURSELF A SNACK, even if it is in the middle of the night, and even if you are not hungry, and despite your fears of gaining weight* this you can prepare some snack food such as Frying egg. 7) *Pray. But when you pray, don't pray about this problem, for that will tend to keep in your mind more than ever. Pray for faith, pray for understanding of the Scriptures, pray for your job or activity.* The tip *number 6* is seems it work for most people so i advise you to do tip number 6 I also advise you to sleep early..finish all activity including charting,social media in seat room. Bear in your mind that the bed room is only for sleep.