Once this pattern of behaviour is clear, the Ambassador will be called for an interview with the Foreign Minister of the host state and told in no uncertain terms to stop this nonsense.
If they refuse to do so, diplomats who there is evidence against will be declared Persona Non Grata. The host country can do this at any time, for any reason they please, and it removes the diplomat's immunity to trial and punishment[1]. Diplomats who have been PNG'ed normally leave the country immediately, and are allowed to do so.
If expelling a few diplomats does not put a stop to the problem, then the host country will terminate diplomatic relations. At this point, "diplomats" from the guest country are given a chance to leave. If they do not, they are subject to arrest, trial and punishment like any other foreign criminal. The host country's police forces are likely to treat them as a priority, and if they try violence, to bring in the army to apply superior force.
An example of gross misconduct by diplomats can be found at Murder of Yvonne Fletcher. In that case, after a short siege, diplomatic relations were broken without any PNG'ing.
[1] Diplomats are not immune to being arrested. If they're engaged in a crime outside diplomatic premises they can be arrested like anyone else. However, once things have calmed down and they assert their diplomatic immunity, they cannot be held by the police, nor tried or punished. They are released into the custody of their ambassador, if they aren't immediately PNG'ed.