do you have any flat area in your backyard? My yard is flat first and then a down hill slope. Simply built a fence around the flat area and it should be fine. If no flat area at all, I wil hesitate for potential landslide risk, but you will need an expert to assess the risk. The risk could be none if the soil/ structure/climate are right.