Is there a certain time during the day you should stop drinking caffeine? And is coffee okay to have 2hours before you eat?

Stimulant, Diuretic. Caffeine is a xanthene derivative and it acts as a stimulant and diuretic. People vary in their sensitivity to caffeine also the issue of tolerance ( with repeated use) plays a role on how the substance affects you. It may affect the appetite and sleep negatively, so better avoid it in the evening and before meals if you find out it blocks your appetite. .