last resort
US /ˌlæst rɪˈzɔːrt/
UK /ˌlæst rɪˈzɔːrt/

1.
a final course of action, used only when all others have failed
:
•
Calling the police was her last resort.
•
We only use this method as a last resort.
a final course of action, used only when all others have failed