智穷力竭

at one's wit's end, at the end of one's rope, at the end of one's row

zhì qióng lì jié ㄓˋ ㄑㄩㄥˊ ㄌㄧˋ ㄐㄧㄝˊ