A doctor has taken to TikTok to warn followers not to drink coffee in the afternoon.