When you are about to fall off the twig it's probably time to eat enough to get your blood glucose level back into the normal range.
When your reptilian mind has an irrepressible lust for a treat you should have your treat with a side of exercise. Or you could compensate by adjusting your other food intake.