Undertaking a task in such a way as to make undesirable consequence to yourself likely, when avoiding those consequences would have been easily achieved by a simple change in direction or approach. (i.e., pissing down wind instead.)
Dang, Jake, you're pissing into the wind telling the boss you're too hungover to work. Just call in sick.