Go down fighting

To continue to struggle until one is defeated.

The politician plans to go down fighting to try to keep his job.