A former Iranian prisoner has warned a British couple who have been detained in Iran on espionage charges to “not submit to making false confessions”.