All the instances you gave are understandable, but that would be difficult to achieve in a country like ours where they don't investigate before sentencing someone even with all your evidence.
Aside from that, wicked people would also take advantage of the corrupt justice system and kill innocent people, like the state at home example you gave.
Things like this are only possible in a developed country.
That's the problem o, its unfortunate we don't have a system that investigate things before ruling.
So I guess we're at the mercy of the person judging.
For the other I also considered it, and it falls in the same category of proper investigation, with that thrill detect who's saying the truth and who's trying to take advantage of the loopholes.
That's if the person has the fear of God and is sincere.
The most important thing is to pray never to find ourselves in such situations