(1) It is always a bad idea to break into someone's house.
(2) It is always a bad idea to murder a helpless woman in cold blood.
If she hadn't broken into the house, she wouldn't be dead.
If he hadn't murdered a helpless woman, he wouldn't be dying in prison.
Of course, you are free to spin it the other way if that is your inclination.