危うく
1
barely;narrowly
2
almost;nearly
我々はあやうく凍死するところだった。
We were nearly frozen to death.