That sounds a lot like my son when he was younger. There was no way to avoid it. When he was school aged I could keep it in check with "normal life," but he has continued to stick out to others in the similar ways as an adult.

Unfortunately, he has become a somewhat arrogant adult. He never seemed to have learned to "suffer fools" - gladly or otherwise. It also makes him have some difficulty in his career because he thinks everyone else is an idiot. He moves from job to job every couple of years as the honeymoon wears off and in turn, it makes him miserable. Dealing with it when they are young is probably a good idea, based on my experience.