jì​qióng​lǜ​jí

at one's wits' end