If there's a stranger trying to break into your house in the middle of the night, the intricacies of the law are probably the last thing on your mind.
But your actions in the moment could determine whether you are plunged into a legal minefield, says an experienced defence lawyer.