Fetching details from the dictionary...
the point just before ...; the point of (doing); the verge (of); the eve (of)
(just before the) edge
出発の間際、彼は気づいた。
He realized it just before departure.
締め切りの間際になって、彼は慌て出した。
He started panicking just before the deadline.
結婚式の間際になり、彼女は急に不安になった。
Just before the wedding, she suddenly felt anxious.