Islam offered basic protection of rights and it didn’t matter if you were pious or impious, you had the right to present your evidence and defend yourself.
Just because you are a pious person you can’t accuse an impious person of wrong unless you have evidence. Everyone has rights in Islam including Christians and Jews. These rights are not just for Muslims only. It matters what the evidence says whether you are Muslim, Christian, Jew, bad or good.
Those of us who live in the West live in countries with robust systems of laws and rights in which we benefit from. Yet in some Muslim countries, Muslim scholars lost their careers or lost their lives for speaking up for justice and human rights.