I'm looking for a word or phrase to describe the situation where individuals find themselves hopelessly surrounded, realize their inevitable demise, and decide to fight as hard as possible and deal as much damage to their adversaries as possible before their demise.
Verbs and nouns can work.