Stop/move at a certin distance

Im new and im just wondering if i can make sprite1 stop at a certin distance from sprite2 (using numbers to make it easier) but once sprite2 gets away/to a certain distance from sprite 1…Sprite1 will move to normal speed again.

move and stop at position

alright tyvm