Quick help

onClipEvent (load) {
X = _x;
}
onClipEvent (enterFrame) {
if (_root.player._x>_x) {
this._x += 20 && _x>80;
gotoAndStop(“Ape Roll”);
}
}

how do i make move towards the player a certain limit so that it stops when near the player and not on the player