Immunological resilience and biodiversity for prevention