Switch of phenotype as an escape mechanism of the intruder