Down to the wire

To the very end, to the last minute

Examples

They played aggressively and enthusiastically down to the wire. And finally they snatched the victory.