Can you attack your burglar?

It might seem a daft question…can you attack your burglar, particularly if they are attacking or threatening to attack you…but up until recently the answer would have been no, or at least not without fear of prosecution irrespective of the threat you may...