Nationalism is perfectly natural and is born from a human need to be part of a group, we are herd animals.
It's only when taken to the extreme that it is harmful, examples are patriotism(America being the prime example), chauvinism(a reason quite a few Europeans, including myself, dislike the French) and protectionism(banned by the UN afaik)