Do jaywalking laws apply mainly to areas with multi-lane roads and higher traffic, or do they apply even in smaller neighborhoods and 5 mph campgrounds? Is it considered illegal if, for example, I cross the street to visit a neighbor whose house is right in front of mine, separated only by a small road? I'll primarily apply this to U.S. law and assume that any state laws against jaywalking would be similar. I've looked for answers to this question but haven't found anything that directly addresses this issue.
If crossing the street is illegal even in such scenarios, are intersections the only valid way to cross the street in neighborhoods, assuming there are no marked crosswalks? If not, in what types of areas do jaywalking laws apply/not apply?