I'm referring to simply being in the country without authorization, or having entered illegally; what is called in the US "undocumented", and which most countries treat with deportation.
ChatGPT tells me that Saudi Arabia and Iran execute people for "immigration-related offences" such as drug trafficking, so that doesn't count yet.