I spent three months walking across China. For most of that time, I was in rural areas, really out in the middle of nowhere. Seeing as China is a communist country, all of the land is state owned, and thus property rights are understood differently than in the West.
Trespassing or walking on someone else's land is rarely perceived as dangerous. When you're out in the boonies, you run into farmers and they are usually very generous, even if they are bewildered by what on earth you are doing there. More often than not, they invite you in for milk tea -- and if you're lucky, for home-cooked food.