A man groomed by two suspected members of Chinese intelligence has been jailed before sentencing as sheriffs tried to console his distraught mother.