Under The Wire

Barely, scarcely, just within a limit or deadline.

Examples:

  • This book will be finished just under the wire.

Origin: First half of 1900s; from horse racing where a wire marks the finish line