Narrow escape

An escape with little chance of error.

The boy had a narrow escape when he almost fell from his bicycle.