It's all about moderation. You're allowed to eat junk food once in awhile, but you need to teach your brain to want healthy sugars instead. I struggle with the same thing, but when I'm craving candy I pick up fruit, as it has natural sugars in it to help curb your craving. Moderation is the key though.
I can understand that! If cookies are sitting on the counter put them away so they aren't the first thing you see. You have to trick your brain essentially. Find some fruits and vegetables that you really like, and have them in the place of the sweets you would normally go for!
Well your not going to be punish eating junk food, i say cut down in junk food and eat healthier snacks to satified the sugar cravings. Take baby steps.
Sugar is an addiction, it takes time and a lot of willpower to beat it. First thing I had to do was get rid of all the sweets at home. Then I talked to a few people I trust and asked for their help to remind me. Try giving up just one thing at a time like soda for a couple weeks.