I know the quote more along the lines of
“Never attribute to malice that which is adequately explained by stupidity.”