bān​shí​tou​zá​zì​jǐ​de​jiǎo

to shoot oneself in the foot