I always do it right after and let it cool down. The sugar dissolves quicker.
As I said in a similar topic try not to eat after 6 P.M. And never eat before you go to bed. Drink more fluids because sometime thirst is mistaken for hunger. Exercise at least twice a week even if it's for 20 min.