What does Beinahe wäre ich gefallen mean?

Beinahe wäre ich gefallen - German to English

I was within an ace of dropping. [coll.] [obs.]