How to make a relationship last when you meet new people.

So I want to know when you have met new people at say a job, a night out. What do YOU do to stay devoted in your relationship. If these people have made you laugh or made you happy or got close how do you stay devoted in your relationship and dont let fantasies or temptations get in the way.