under the wire
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.
Dictionary.com presents 366 FAQs, incorporating some of the frequently asked questions from the past with newer queries.