close shave       
noun [ C ] uk/ˌkləʊs ˈʃeɪv/ us/ˌkloʊs ˈʃeɪv/
 侥幸脱险,幸免遇难;万幸
a situation in which you come very close to a dangerous situation
  I had a close shave this morning - some idiot almost knocked me off my bike. 今天早上我可真险啊——有个白痴差点把我从自行车上撞下来。 
 Synonym: close call
Compare: squeaker