Beijing's support for Tehran is balanced against other relationships in the region, analysts say.