Disagree. It is ideal. Iran has been behind many terrorist activities over the decades.
We don't know where the people who will make scientific breakthrough will be. Imagine losing the cure for cancer, or a form of clean energy (or anything that could change the world for everyone) due to this.
I can't be angry at Google for following US law, any more than I can be angry at Huawei for following Chinese law.