Meaning of “a close shave” - Learner’s Dictionary

a close shave

a situation in which something unpleasant or dangerous almost happens

(Definition of “a close shave” from the Cambridge Learner’s Dictionary © Cambridge University Press)