Where eggs are washed before sale (as in North America), keep them refrigerated. Store them in their carton rather than the fridge door to keep the temperature stable.
Use clean hands and surfaces, avoid cracked eggs, and do not leave cooked egg dishes at room temperature for more than a couple of hours.
The takeaway
Cold storage and clean handling do most of the work. When in doubt, refrigerate and cook thoroughly.