That depends on the trap and how you set it. If you dig a hole for a house and someone falls in you are not liable.
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.