legally, they committed a crime and should therefore serve the punishment, whatever that may be. The sentencing in this case is very harsh but fundamentally it isn't wrong. They crossed a border without permission. That is a crime. It's a crime in America, a crime in Iran, and a crime pretty much everywhere else.