What does it mean that the immune system needs to recognize "self" from "non-self"?

a. immune cells need to be able to recognize themselves
b. immune cells should only recognize microbes
c. immune cells should attack healthy body cells
d. immune cells should only recognize and attack invaders/infected cells

d. immune cells should only recognize and attack invaders/infected cells