That's with any draw.
Croatia has +2, let's say Spain wins 3-0 so they get +3 and Italy has 0.
If Italy wins 2-0 they tie with Croatia on h2h and goal difference but Croatia will advance on goals scored (4 now, 6 with 2-2 draw, Spain would have 6 too and Italy 3)