Preventing E. coli infections involves several preventive measures: - Cook meats thoroughly, especially ground beef. - Avoid consuming unpasteurized milk and dairy products. - Wash hands frequently, particularly after using the restroom, handling raw meat, or coming into contact with animals. - Wash fruits and vegetables under running water before eating or cooking them. - Use clean water sources for drinking and cooking.