Stupid people are the most dangerous type because their irrational actions are unpredictable. Cipolla's Matrix of Human Behavior

Cipolla categorizes behavior into four types based on gains/losses for oneself and others:

A stupid person causes losses to others without gaining anything themselves.

Book Review-The Basic Laws of Human Stupidity - Thor Projects

Non-stupid people fail to realize how costly dealing with stupid people is.