idiom
down to the wire
Meaning
until the very last moment; close to the deadline
Example
The game went **down to the wire**, but they won in the end.