Wash your hands
Handwashing after using the bathroom and before handling food is the major way to prevent not only e coli and food borne illness in general.
Next, thoroughly cooking meats kills most bacteria
food preparation areas with bactericidal soap or mild bleach is also important. You should clean sponges in your dishwasher and dish towels in the clothes washing machine, regularly, using hot water.