It's arguably a good idea for the world in general. By occupying the strait and being the official security provider, Iran prevents the U.S. from ever taking that role. One of the reasons the US tried to collapse Iran was so it could come in and occupy the Strait, then use that power to cut off China from Hormuz oil as an extension of their Strait of Malacca blockade strategy into the Middle East.
Just imagine if the U.S. was able to enforce sanctions and blockades at the Strait of Hormuz, restricting oil going from the strait to any U.S.-sanctioned country. That would be the exact inverse of what Iran is doing right now.