down to the wire
вплоть до крайнего срока
The workers went down to the wire and were able to complete the construction of the bridge on time.
вплоть до крайнего срока