A judge fined Donald Trump $5,000 on Friday after threatening the former president with jail time over a “blatant violation” of a partial gag order in his $250 million New York fraud trial.

The judge warned that future violations will subject Trump to “far more severe sanctions” — including imprisonment.

“Incendiary untruths can and have led to serious physical harm,” Manhattan Supreme Court Judge Arthur Engoron said in court earlier Friday, before asking a defense lawyer to explain why Trump should not be punished or imprisoned.

Trump’s attorney apologized on his behalf, saying the violation was unintentional.