The Mexican flew out the pits during the early safety car phase towards the first corner when the pair of track officials darted in front of his Racing Point car.
The first marshal managed to scurry inside the barriers just in the nick of time.
But the second one stopped in his tracks as fortunately, Perez squeezed through the duo to avoid disaster.
He immediately blasted the two on his team radio, saying: “What was wrong with those marshals? I nearly killed them.”