a mali estremi, estremi rimedi

Etymology
lit. 'to extreme bads, extreme remedies'.

Proverb

 * 1) desperate times call for desperate measures