under the wire
under the wire {adv. phr.}
With a narrow time limit; in the last minute.
The journalist's new lead article on Russia was due in press at 5 P.M., and he got it in at 4:57, just under the wire.
Categories:
Source: A Dictionary of American Idioms