A Riverview man accused of uttering threats to kill police officers has been ordered not to have contact with Justin Bourque, the suspect in the Moncton shootings that left three RCMP officers dead and two others injured last month.

David Earle Crawford

David Earle Crawford, 19, of Riverview, has been released under house arrest until his next court appearance on July 25. (Facebook)

David Earle Crawford, 19, is also banned from having any contact with Jasper Stam, who recently pleaded guilty to uttering threats about police.

Crawford is charged with uttering death threats to police outside the Codiac RCMP detachment on June 9, five days after the five Mounties were shot in Moncton's north end.

He is also charged with causing a disturbance in connection with the same alleged incident.

Crawford was released from custody on conditions Wednesday, following a bail hearing.

There is a publication ban on any evidence.

Crown requested no-contact order

Crawford was placed under house arrest until his next court appearance on July 25.

Crown prosecutor Johanne Landry also requested that Crawford have no contact with Bourque or Stam.

Bourque, 24, of Moncton, is facing three counts of first-degree murder and two counts of attempted murder.

He has been sent for a psychiatric assessment and is scheduled to return to court on July 31.

Constables Douglas James Larche, 40, from Saint John.; Dave Joseph Ross, 32, from Victoriaville, Que.​; and Fabrice Georges Gevaudan, 45, originally from Boulogne-Billancourt, France were killed by a heavily armed gunman on June 4.

Constables Éric Stéphane J. Dubois and Marie Darlene Goguen were wounded in the attack.

Stam, 25, of Moncton, pleaded guilty on June 18 to uttering threats to cause death or bodily harm about police to another person.

He was originally charged with uttering threats between May 10 and 18 to cause death to police officers.

Stam was released from custody and placed under house arrest, pending a sentencing hearing on Sept. 9.

He is also banned from having contact with Bourque.