間際
まぎわ the point just before ...; the point of (doing)
Why it means this
間 (the moment) + 際 (the very edge) — the point just before something; 終了間際, right before the end.
Breakdown
Each character links to its full entry — origin story, stroke order, and readings.