がけっぷちでした
gakeppuchideshita

Noun
Desu Copula

The polite past form of 崖っぷち

1. Was on the brink.; Was cornered.; Was in a tight spot.

Past/Perfective
Polite