Near where I live there’s a lot of nice walking paths. One of them goes near a small group of new houses. The footpath predates the houses. It’s on private land I believe (not owned by the people in the new houses), but, as we’re in Scotland, you’re allowed to cross private land on foot so long as you’re being responsible and not too close to anyone’s homes etc.
The people who live in the new houses do not like walkers going along this footpath. They can’t actually stop people (they have put a No Entry sign up previously, which the council made them take down), but if you walk down that path they will sometimes come up and question you about where you’re going and why you’re there and make it very clear they’d rather you weren’t.
Today, nice day off, out for a walk, strolling happily down that path to find a local resident standing with arms folded glaring at me. Did not respond to a cheery “Morning!”
The path isn’t close enough to any of the houses to see in through the windows or anything, and it doesn’t cross anyone’s gardens, and it’s part of a nice longer walking route. Legally, walking down it is fine. But the people in those houses definitely do not want people doing it.
YABU - walk somewhere else, who cares what the law says, they don’t like it.
YANBU - law overrides what they like, keep walking.