cut it fine
Do something closely with a very slight margin, as in Tom always cut it fine, arriving at the last minute. This term uses fine in the sense of “narrow.” [Late 1800s]
The American Heritage® Idioms Dictionary Copyright © 2002, 2001, 1995 by Houghton Mifflin Harcourt Publishing Company. Published by Houghton Mifflin Harcourt Publishing Company.