There isn’t actually a hard line between malice and incompetence. The two mix quite freely, in varying combinations and in ways that are impossible to separate and meaningless to try. Being evil doesn’t imply genius and being stupid doesn’t absolve you from evil.