The key judgement is whether a country bans Chinese 5g. If they completely bans then they are enemies. Israel has became one.All allies and friends are unstable and unreliable. Its law is like a sinusoid. When you reach the top, next you will go down. It partly explains the reason for the brotherly / ally relationship: The Soviet Union, Vietnam and Albania became hostile to China and its influence remains to this day. China needs to have good relations with the rest of the world but cannot be too good because it has the opposite effect.
It is interesting to note that Israel and Saudi Arabia are the two countries that give China the most benefits, not Iran. Israel has sold uavs, air-to-air missiles (with TOT), and provided technical assistance to China during the development of the J-10. Saudi Arabia is China's major economic partner in the Middle East, and is also one of the countries that have supported China as the United States and its allies use the Uighur issue to attack China.
China needs to avoid making statements and actions affecting relations with those two countries. Too close to iran is not good for china. If buying oil from Iran is more beneficial to China than buying oil from Russia and KSA then this transaction should be encouraged. But bringing advanced weapons to Iran or any other country is absolutely not.