The court ruled the former president’s lawyers used the wrong legal mechanism to fight the restriction.

A New York appeals court has again upheld a gag order that bars Donald Trump from commenting about court personnel in his civil fraud trial, ruling Thursday that the former president’s lawyers used the wrong legal mechanism to fight the restriction.

A four-judge panel in the state’s mid-level appellate court ruled Thursday that Trump’s lawyers erred by suing trial Judge Arthur Engoron, who imposed the gag order in October after Trump disparaged his law clerk.

Instead, the appellate judges wrote, Trump’s lawyers should’ve followed the normal appeals process by asking Engoron to reverse the gag order and then, if denied, fighting that decision in a higher court.