I think if Pakistan had a choice between choosing to shelter tribes that would attack the Chinese, I think Pakistan would choose the side of the Chinese.
Yes, China could probably roll over Pakistan. And if Pakistan used one of their nukes, China would terminate Pakistan’s existence.