Casi se cae por el borde del acantilado.

English Translation

He almost fell off the edge of the cliff.

they should change it to precipicio instead of acantilado. a more general term for cliff.