A violent home invasion in a rural NSW community has brought renewed attention to the law of self-defence.