At the last possible moment; at the last minute.
At the last minute; before the deadline; barely on time; nearly late.
Across the finish line.