Effective prevention hinges on three key practices: cooking foods thoroughly to safe internal temperatures, maintaining cooked foods either hot (above 140°F/60°C) or cold (below 40°F/4°C), and promptly refrigerating leftovers within two hours, often by dividing large portions to cool faster.