If an innocent person must go to prison to prevent a riot that would kill 100 people, is acceptable to frame them for you personally?
That person is not responsible for the death of the 100 people. But since you are navigating your own morality, if it means that person is forever going to be framed then you have to choose between the guilt of deliberately putting someone in jail and forever portraying them as a criminal or not saving 100 people that are not your responsibility at all, people who knowingly participated in a dangerous activity that could lead to damage or life loss. It all boils down to your subjective morality.