last resort

/L AE1 S T R IH0 Z AO1 R T/
noun
  1. 1

    The only remaining, often least-desirable, option when all others have been excluded.

    โ€œI wouldn't recommend doing surgery on yourself, unless it is a last resort.โ€

Source: https://en.wiktionary.org/wiki/last%20resort