The quote below is from the US State Department’s website.
“Do not travel to Iran due to the risk of kidnapping and the arbitrary arrest, detention of U.S. citizens, and COVID-19.”
You may think people foolish for going there, but that still doesn’t mean that their purpose for doing so was to protest (as you originally stated).