As a farmer, tying up a goat leads to all kinds of problems. Goats will try to push the limits of the rope and somehow find a fence or rail to jump. They eventually tangle the rope and continue to try to jump obstacles until they literally hang themselves.
So it is any stupid action that leads one to get themselves or others into a no-win situation that could have been avoided.
Dad left the lid off the blender when making a "smoothie". Now we have to clean it off the walls before Mom gets home, what a goat rope.