This is an oversimplification. One should of course take great care not to use generalizations to promote group-based hatred, but this is in addition to the fact that it would be naive (and impossibly restrictive) to declare nationality generalization forbidden. Nationalities, cultures, and many other set-formings of humans have salient features, on average, for better or worse.