IDIOMS

to have a narrow escape

Example: He had a narrow escape when he almost fell from his motorcycle.