idiom
get down to the wire
acercarse al último momento posible antes de un plazo
Meaning
to approach the last possible moment before a deadline
Example
The project went **down to the wire**, but we finished on time.
El proyecto llegó **hasta el último momento**, pero terminamos a tiempo.