Evolution at shifting range margins