There are many different bacterium. The method is to avoid them, and to retard their growth. Heat does not kill all bacterium. Some bacterium require a lack of oxygen (anaerobic), and other require...
Eat fresh food, don't put any products that must stay in cold temp. too long and be careful when you eat something at restaurant and the take home to eat.