While China pushed the US back when it invaded its ally in Korea, why didn't China protect Cambodia from the Vietnamese invasion?
China shares a border with Korea. Although China did invade the north of Vietnam in a punitive mission, they suffered large losses. Even if they had wanted to, China didn't have any sort of expeditionary force so was incapable of doing more than that.