幸免于难

escape by the skin of one's teeth

xìng miǎn yú nán ㄒㄧㄥˋ ㄇㄧㄢˇ ㄩˊ ㄋㄢˊ