immune resistance to infection