Wiktionary
cut it fine
vb. (context idiomatic English) to achieve something at the last possible moment, or with no margin for error
Usage examples of "cut it fine".
I've cut it fine,' Haley thought as Arandite started to throb gently against the hold of the stern wire.