Whether someone morally deserves a punishment for a crime depends on whether they actually did it, not on whether they are considered innocent in the eyes of the law.
Of course, I don’t generally support vigilantism , so I don’t think people should try to make other people get what they think the other people deserve as punishment. But, that doesn’t mean that people can’t deserve worse than the law prescribes, just that people shouldn’t like, try to deliver what they think the deserts are.