A teen on trial over a woman's death during a Boxing Day home invasion tried to intervene when another youth threatened to fatally stab her, a judge has heard.