Just before too late, in the nick of time.(adjective)
Wiktionary.org : Text is available under the Creative Commons Attribution-ShareAlike License
Use "last-minute" in a sentence
"In a securities filing last month, the company informed shareholders about what it called the "last-minute legislation.""
"In January, Mr. Cobb made what he called a "last-minute plea for reversal of this death sentence" to David Barger, the president and chief executive of JetBlue."
"Gross and El-Erian say they regularly begin emailing each other about their market strategies before 5 a.m., Pacific Standard Time, and both say they have called last-minute meetings with their fellow Pimco executives during the recent market turmoil to weigh market conditions and how they could affect Pimco portfolios."