What I read here is that a machine should be afforded the right to protect itself which might contradict its directive of protecting the children.
When a person protects children by risking their selves, it is called heroism. It is not expected. But for a machine, I think it should be expected.