Wash your hands with soap and water. Those anti bacteria/ hand sanitizers are ok as a backup plan but they don't actually remove the germs and bacteria, just smush it around on your hands. Even if the germs are killed, 99% of them, they are still on your hands.
The other way to prevent getting sick is having enough sleep. That's when your body heals and repairs itself. Give your immune system that down time to work.