@Lizzie I'd say the best advice is to carefully screen guests so that you can do your best to avoid bad guests all together. I have a co-worker who lives in a beautiful home by a river, and the people across the river were constantly renting out their place to groups of partiers. No screening and no care leads to misery for the neighbours.
Second would be laying out rules around behaviour (no parties, no noise after 11 pm, limits on the number of guests, where to park, etc) and enforce them. Send a reminder to guests before they arrive, don't just trust they'll remember: they may have booked months ahead and forgotten everything by the time they actually arrive.
After that, I'd say take proper precautions to ensure guests are properly monitored, especially if you're not on site. That could include tools like video cameras (outside of course, and properly disclosed) or other tools like Party Squasher. It could also be low tech stuff, like giving the neighbour your number and letting them know to call you if there is a problem or having a friend do a drive-by to check on the place.
Following the laws around vacation rentals in your area would also be a big one.
I do feel like luck plays a big role, though. We have neighbours who are younger, and they keep their house decent, but they're not really too concerned about what we're doing. It just takes a neighbour who's overly picky and will complain constantly to ruin your Airbnb business. We abide by the law and follow all the rules, but that doesn't nescessarily protect you as a host if you have a neighbour who's determined to make your life difficult.