for the last train
急げ、さもないと終電に遅れるよ。
Hurry up, or you'll miss the last train.
終電にぎりぎりセーフだったよ。
I barely caught the last train.