I think if it can be proven that someone was committing a crime and you were defending yourself then that should be grounds for acquittal. There has to be differentiation between this and just shooting someone who rings your doorbell (maybe because they have a different skin colour like has happened in the US in the past).