'Immune from criticism' would mean no one can criticize you.
'Immune to criticism' would mean people can criticize you, but you can ignore it.
The sentence is saying that although it isn't possible to avoid criticism, we can ignore it and not let it bother us.
Hope that helps!