Megyn Kelly and Bill O'Reilly went back and forth Monday night over criticism leveled at New York City Mayor Bill de Blasio over his reappointment of a controversial judge.

Brooklyn Criminal Court Judge Laura Johnson faced a firestorm last month when she released without bail two men who had made violent threats against police officers. 

One of the men was an alleged gang member who posted on Facebook a photo of a man firing a gun at an NYPD car. He also included a threatening reference to the 73rd police precinct.

NYC Judge Releases (Without Bail) Men Who Threatened to Kill Cops

In his Talking Points Memo, O'Reilly called out the mayor for "symbolically spitting in the face of his own police department" with the reappointment of Johnson.

But Kelly pushed back that the ruling is "not as egregious" as has been suggested.

Kelly explained that the suspect already had posted bail on other charges and has other court dates pending.

In New York, she said judges are only allowed to assess whether the suspect is a flight risk when deciding bail. 

She said, ironically, de Blasio supports changing the law on bail to allow judges more leeway in holding suspects in custody. 

“De Blasio’s got many problems, but I don’t see this judge’s reappointment as one of them," said Kelly. 

O'Reilly countered that the cops see the reappointment as yet another strike against the mayor. 

"They'll never, ever respect de Blasio no matter what he does," said O'Reilly.

O'Reilly: '1 Thing Police Can't Protect Us From Is a Politician Like De Blasio'

Watch the discussion above, and check out the "Outnumbered" reaction below. 

Andrea Tantaros and Shannon Bream agreed that according to the letter of the law, the ruling was OK, but does not make a lot of sense. 

Former NYPD detective Bo Dietl said the judge should have sent a message that threatening cops is not going to be tolerated.

Tantaros noted that the judge clearly went against law enforcement in her decision, since the prosecutor wanted the dangerous suspect held on $250,000 bail.