You are at a higher risk for sepsis when you have a weak immune system. If your immune system is not strong enough to fight bacteria, an infection could form, which could possibly lead to sepsis. Keeping yourself healthy and immune system strong is a good way to prevent sepsis from occurring. Avoiding hospitals is another smart way to prevent sepsis. Since newborns are still strengthening their immune system, they are especially at risk for neonatal sepsis. There are antibiotics to prevent neonatal sepsis, which pregnant mothers can take if they have a bad infection at the time of their pregnancy or they have previously birthed an infant that contracted sepsis.