go down swinging
US /ɡoʊ daʊn ˈswɪŋɪŋ/
UK /ɡoʊ daʊn ˈswɪŋɪŋ/

1.
to continue to fight or make an effort until the very end, even when defeat is certain
:
•
Despite being outnumbered, the team decided to go down swinging.
•
I'd rather go down swinging than give up without a fight.