Most laws tend to frown upon traps. And the blame goes to the one who sets the trap, not the one who trips it, even if the victim was engaging in otherwise illegal actions.
https://www.alllaw.com/articles/nolo/personal-injury/liabili...
I'm fairly confident this "intent" thing is absolutely the wrong way to build a society. I would love if someone would engage with this idea and offer criticisms for/against but so far nobody has.
If you dig a hole on your property you better secure it, or else kids might fall in.
Even failing to shovel the snow and having someone trip and injure themselves is enough grounds for some sort of tort liability.
To a lesser extent it’s true in Canada and the UK too I believe.