That’s what happens when you de-humanize groups of people and attach a label to the group, such as Kafir or apostate.
Nothing blocks you from committing monstrous acts against the Kafir or apostate.
...If you're a Muslim.
Christ taught us to love our enemies and to pray for them.