How to stop the move of one object

i want to stop the move of one object when an other object passes over a specific point!!!how i can do this threw a method?