It usually comes down to degree of damage and what damage a reasonable person can anticipate.
So like, a glitter bomb aimed deliberately away from someone's face that woopsie's an eye out, is maybe okay, but a literal bear trap that removes a foot isn't.
If I recall correctly that would fall under product liability, and is unrelated to whether one may be sued for personal injury or property management negligence. It is absurd, but a moat full of alligators still needs a clear sign stating the dangers. =3
Nope, in most if not all western countries man-trapping is illegal, and if a burglar injures themselves attempting to rob you they usually may sue you for personal injury.