To shoot oneself in the foot (idiomatic): To unintentionally act against one's own interests. To be the author of one's own doom.