Man falls to death trying to rescue dog