Well that's what the judicial process is for, right?

That said, I really do not like the Japanese tendency towards "guilty until proven innocent" -- the MASSIVE indicator of this being publishing photos and names "〇〇容疑者" when they're arrested and before even the trial starts.