Evolutionary dynamics of invasion and escape