Eating too much simple sugar can negatively affect your immune system for up to 5 hours after you eat it, according to AskDrSears.com. An excess of sugar blocks your immune system from functioning properly and diminishes the ability of white blood cells to fight bacteria.