Here is a good blanket answer:
Work it out with your GM.
It is a question of "methods verse goals." A debate that belongs in philosophy, not gaming.
I had a player's lawful neutral cleric use death knell to punish law breakers. I considered it a lawful spell in that sense, not an evil one.