He believes that his advice will prevent some developers from suffering serious legal consequences. I see nothing wrong there. Feel free to provide the right information if you think he's incorrect.
Sanctions are applied by the US and it's allies. There aren't Iranian laws stopping you from selling things to or using services from the US or its allies.