just before, on the verge of
目撃者は死ぬ間際 証言を変える
Witnesses change their testimony just before they die.
— エリート・スクワッド ブラジル特殊部隊BOPE (2010)
飛行機は離陸間際だ。
The plane is about to take off.
彼はその店へ閉店間際に行った。
He went to the store just before it closed.
死の間際に 思い出すだろう・・
You’ll remember it on the brink of death…
— ロード・オブ・ザ・リング/王の帰還 (2003)