have a narrow/lucky escape
1
to avoid being killed or seriously injured only because you were lucky or made a very big effortA couple had a narrow escape when a tree fell just in front of their car.
Synonyms and related words
To avoid risks or danger
escape
retreat
skate over/around