They can be hard to tell apart. Evil people often operate through stupid people because it's relatively easy to lie to, confuse, and manipulate stupid people. And/or intelligent people with stupid beliefs. (Which applies to virtually everyone.)
From the outside, the UI of evil often looks like stupidity.