窮鼠噛猫
1
a cornered rat will bite the cat;one who is cornered will fight like a devil
See also:
窮鼠猫を噛む (きゅうそねこをかむ)