Prevention. These common-sense precautions can help lower your risk of developing staph infections: 1  Wash your hands. 2  Careful hand-washing is your best defense against germs. 3  Wash your hands briskly for at least 15 to 30 seconds, then dry them with a disposable towel and use another towel to turn off the faucet.