That's simplistic advice. Food additives like High Fructose Corn Syrup cause you to crave more food even though you're calorically fine. If you listen to what your body says while eating poorly, you will over eat.
Did you implicitly define overeating as eating past the point where you stop being hungry? Because that's not necessarily what the parent comment meant. They could have meant eating too much for your activity level.