beat the deadline/clock

uraditi nešto prije krajnjeg roka; stići prije vremena

Sam beat the clock, arriving a few minutes before the doors were locked. 

They were afraid they would be late and hurried in order to beat the clock.