if someone does something under the wire, they do it at the last possible moment They got in under the wire just before the entry requirements for the training program changed.
Barely, scarcely, just within the limit, as in This book will be finished just under the wire. This term comes from horse racing, where the wire marks the finish line. [First half of 1900s] Also see down to the wire.