idiom
get down to the wire
Meaning
to approach the last possible moment before a deadline
Example
The project went **down to the wire**, but we finished on time.