Why is it unsafe to live on a cliff?

Because gradually over time the cliff erodes (wears away) and if you live on the cliff then to put it simply your house will gradually fall off the cliff.