You should use `<=2` not `!=2`. Do you know the meaning of `!`?