Can Invariant Risk Minimization resist the temptation of learning spurious correlations?