I would just add that there is actually an offence in the Criminal Code for trap setting where there is the likelihood of causing bodily harm. Typically, the traps will be set in advance of there being a particular threat. So they wouldn't be temporarily connected enough with the threat that could justify the use of force in self-defence.
On February 7th, 2012. See this statement in context.