Food poisoning can be prevented by:
Washing fruits and vegetables properly
Discarding the spoiled or rotten food
Keeping the food items in clean and hygienic places
Always checking if the food is spoiled before consuming it
Cooking the food properly and avoid eating raw or partially cooked food