Preventive measures include vaccinations (such as the pneumococcal vaccine and the influenza vaccine), maintaining good hygiene practices, avoiding close contact with sick individuals, and following a healthy diet to support the immune system. Additionally, cancer patients should adhere to their treatment plans and attend all follow-up appointments to monitor their health.