Just in time has 2 different meanings across 1 category:
Adverb
at the last possible moment
"she was saved in the nick of time"
At the last possible moment; just before or within the assigned time.