Don’t derail your diet. If you must indulge, figure out when you can get your food fix and do the least damage.