1) Harming one's self, usually unintentionally or without knowledge of doing so. 2) Similar to saying "you are only hurting yourself." 3) Similar to phrase "shooting yourself in the foot."
Fred: "I got really annoyed at work today, so I told my boss to shut up."