Studies have been done by certain police forces in the US. Conclusion is that, if a cop is approached by a guy with a knife, within a 21 foot distance, shooting him is righteous. Canadian courts support this .