tying a cat to a leash
When your dumb friend does something that any human with common sense knows will not work but he thinks it will work.
"Are you really going to open that can with a bottle opener? You're basically tying a cat to a leash right now!"