Usually not immediately. Notice, an opportunity to cure, then proof of a pattern that continued. Here is the landlord's own sequence, read from your side.
Veterinary behavior bodies say aversive equipment including electronic collars should not be used. What that means when the real problem is your neighbor.