Attack or defense should be an outcome, not a decision. You better don't go for all-out attack or slow attack or attack in any way without a vulnerability in opponents position, as it will end like this:
[![all-out attack example][1]][1]
(source: virginmedia.com)
Normally, you should evaluate the position, if opponents position is vulnerable you have to go for an attack, if your position is vulnerable you have to go for a defense. If you ignore the facts and decide with emotions, you lose a lot. [1]: https://i.sstatic.net/u59cf.jpg