Never attribute to malice that which is adequately explained by stupidity
https://en.wikipedia.org/wiki/Hanlon%27s_razor
The other side of that same coin is to never admit to malice if your actions can be adequately excused by stupidity.