New York police say there is a ‘credible threat’ of attempts to assassinate officers in the same Bronx precinct where a gunman shot and wounded two cops in two separate shootings just four days ago.

The Sergeants Benevolent Association, one of the largest police unions in New York City, posted a tweet that showed an internal memo that was to have been disseminated to all men and women on the force.

The all-caps message reads: ‘INVESTIGATIVE UNITS HAVE RECEIVED A CREDIBLE THREAT OF AN INDIVIDUAL THAT MAY ATTEMPT TO SHOOT A NYPD MOS (member of service), IN PARTICULAR, A 41 PCT MOS.

‘ALL MOS ARE BEING ADVISED TO BE VIGILANT AND ALERT.

The Sergeants Benevolent Association, one of the largest police unions in New York City, posted a tweet that showed an internal memo that was to have been disseminated to all men and women on the force warning of a 'credible threat'

The memo was issued just three days after Robert Williams (center) was arraigned in Bronx Criminal Court on Monday

STATIONHOUSE SECURITY MUST BE POSTED ON ALL TOURS.

‘PLEASE ADVISE ALL MOS AND CONTINUE TO READ THIS MESSAGE AT ROLL CALLS UNTIL FURTHER NOTICE.’

The 41st Precinct in the Bronx was where a gunman ambushed police officers - first in a patrol van late on Saturday night and then at precinct headquarters hours later on Sunday morning.

WCBS-TV reports that the NYPD confirmed that there is a 'credible threat,' but a police spokesperson told DailyMail.com that there is an investigation into who leaked the memo.

When reached by DailyMail.com, an NYPD spokesperson refused to confirm that authorities are looking into a 'credible threat' against officers.

Williams allegedly opened fire on a lieutenant manning the front desk of the 41st precinct on Sunday morning. When the lieutenant returned fire, the suspect fled into another room and shot at other police personnel

Williams is seen diving on the floor and surrendering after he ran out of bullets

Several officers then swarmed the suspect after he surrendered his weapon

Emergency vehicles rushed to the 41st precinct after a lieutenant was gunned down at the front desk on Sunday morning

Williams (left) was reportedly out on parole after a 2002 attempted murder conviction. Authorities were also questioning a woman believed to be Williams' girlfriend Liza T Valdez (right), a communications technician for the NYPD

The man accused of ambushing the officers was arraigned Monday on attempted murder and other charges.

The shootings have led to recriminations from police officials and union leaders who criticized recent demonstrations as creating an 'anti-police' atmosphere as well as pushback to that characterization from police reform advocates who said making that connection was irresponsible.

Under the watching eyes of the police officers who packed a Bronx courtroom, a handcuffed Robert Williams, 45, made his first appearance following his Sunday arrest, wearing a gray sweatshirt and sweatpants, one eye swollen shut and a bandage on his ear.

Williams, of the Bronx, was charged with multiple counts of attempted murder.

He is accused of approaching a police patrol van on Saturday night and firing at two officers inside, wounding one before escaping on foot, and also of opening fire Sunday morning at the 41st precinct headquarters, where he wounded a police lieutenant before being arrested.

Williams was remanded into custody after his appearance and is due back in court on February 14.

He was represented in court by an attorney from The Bronx Defenders.

'There is still much that we don't know about what happened and what led up to this incident,' attorney Tom Klein said in a statement.

'We look forward to investigating and learning more so that we can best represent Mr. Williams.'

Earlier Monday, Lt. Jose Gautreaux, who was wounded at the 41st precinct, was greeted by lines of waiting officers as he left the hospital.

The suspect is seen raising his gun and firing at cops in security camera footage from Saturday's incident

The suspect (pictured) was filmed walking away from the scene of Saturday's shooting, which police say was unprovoked

The first officer was shot at 906 Simpson St in the Bronx New York on Saturday, authorities said

His arm in a sling and a police jacket over his shoulders, Gautreaux got out of a wheelchair at the hospital entrance, walking to a waiting car and giving the crowd a thumbs-up.

Among those there was NYPD Commissioner Dermot Shea.

The officer who was wounded in that earlier attack, Paul Stroffolino, was released from the hospital on Sunday evening.

Police said Williams had a long criminal history, including a 2002 shooting and carjacking in which he fired a gun at police.

He was paroled from prison in 2017.

New York Mayor Bill de Blasio (pictured in Washington last month) told reporters he was 'disgusted' by the comments of Sergeants Benevolent Association (SBA) president Ed Mullins

A tweet by Ed Mullins, president of the Sergeants Benevolent Association, 'declaring war' on de Blasio. The New York mayor called the words 'destructive'

Shea has been vocal in condemning criminal justice reform activists for engaging in protests that he suggested have been part of creating what he called an anti-police environment.

''These things are not unrelated. We had people marching through the streets of New York City recently,' Shea said Sunday.

'Words matter. And words affect people's behavior.'

His comments were echoed by Mayor Bill de Blasio.

'Anyone who spews hatred at our officers is aiding and abetting this kind of atmosphere; it is not acceptable,' de Blasio said.

Sergeants Benevolent Association president Ed Mullins launched an attack on de Blasio after an officer was shot inside a patrol van Saturday night and another outside a Bronx police station the following morning

'You could protest for whatever you believe in, but you cannot vilely attack those who are here to protect us. It creates this kind of dynamic.'

But de Blasio came under criticism from the Sergeants Benevolent Association, which on Monday tweeted: 'Mayor DeBlasio, the members of the NYPD are declaring war on you!

'We do not respect you, DO NOT visit us in hospitals.

'You sold the NYPD to the vile creatures, the 1% who hate cops but vote for you.

'NYPD cops have been assassinated because of you. This isn't over, Game on!'

Freddi Goldstein, the mayor's spokeswoman, called the comments 'absolutely reprehensible.'

Donna Lieberman, executive director of the New York Civil Liberties Union, condemned the attack on the officers.

She said there were also concerns about Shea's words.

'Implying without any basis in fact that protesters or protest slogans are responsible for these attacks is irresponsible and needlessly polarizing,' she said.