As a parent, if my kid did that, I'd likely side with the neighbour. I would put it (very loosely) in the category of "natural consequence" punishments.
It fits the crime, it discourages the crime, it forces empathy with the cat, and it does no real harm.