folly

- An action that lacks good sense, and is foolish

... Karl sat on the tree branch and began cutting it, not realizing his enormous folly that he was sitting on the wrong end of the branch.