This is long established common law. Just because it is your property, you cannot escape your obligation to mitigate obvious hazards, particularly where children are involved. So hanging a tree swing that is unsafe and snaps, injuring a child playing on it, still creates liability for you even though the child was trespassing.