he came dangerously close to falling off the ledge
वह कगार से गिरने के खतरनाक तरीके से करीब आ गए
in a dangerous manner
एक खतरनाक तरीके से