People throw "bad words" into spoken English to express anger, or hostility, or irritation.
The "meaning" is "you won't--or I will do something bad to you" + "I am angry at you for talking about it."
When bad words are used in this way, they do not carry their literal meaning. The speaker is trying to express the following idea: "I am so angry that I am out of control. I am not being careful to speak politely."
In the 1940s and the 1950s, words like "hell" and "damn" were considered VERY bad language. Things have moved on, but they still express anger.
"Damn" is bad language because it is related to the word "condemn." The literal sense of the word "damned" means "condemned to go to hell in the afterlife." "Go to hell!" or "damn you!" express the idea literally. But "Oh hell! I just hit my damned thumb with the damned hammer" just mean "I hit my thumb with the hammer" + "I am angry."