The decision on whether the property owner is liable in such a case depends highly on the circumstances. For instance, children are looked at differently than let’s say a criminal. Children are curious and the property owner may be liable if a child wonders onto your property and gets injured. A criminal on the other hand, for one is an adult and knows full well they are not “invited” onto the property.
In all circumstances, the property owner is responsible to maintain some aspect of reasonable care over their property as to not allow injury to others.