I guess I was too cryptic, but since this is all revealed immediately, I don't think I'm giving anything away.
1) Husband and wife wake up, hearing a burglar.
2) Turns out the burglar was in the child's room.
3) Man grabs baseball bat from under bed. Puts wife with child.
4) Chases burglar
out of his house. Once the burglar is out of the house, there is no longer an imminent threat...
5) Burglar turns and looks like he's going for a gun. Man takes one swing with bat at burglar.
6) Burglar has instant appointment with the devil.
7) Man goes to prison for killing the burglar
outside his home.
Very hard to imagine someone going to prison for this. But the movie certainly makes the case about this being a grave injustice.