Interestingly enough, intentionally setting a trap (even on your own property that you expect to be burglarized) has been ruled to be unlawful unless your life is in danger.
"The law has always placed a higher value upon human safety than upon mere rights in property."