This is the worst saying ever.
I have only ever heard people say it who were either incredibly naive, or worse, malicious.
I would go so far as to say: "Never ascribe to stupidity what can reasonably be ascribed to malice."
EDIT: perhaps a clearer way of phrasing this would be "If something can reasonably be ascribed to malice, never ascribe it to stupidity"