Maybe it would help to not put yourself in situations where those type of possibilities might arise. Are you still married? If you are...then don't cheat! Even if your spouse is! You feel bad enough already...don't do something that you'll be sorry for! It might help your ego, but at the expense of 'using' another person, and also at the expense of compromising values that you stated that you have (vows made before God meaning something to you)! This is tough stuff, that's for sure. Do the right thing...always. It will be better for you, and you'll feel better in the long run.
"Always go straight forward, and if you meet the devil, cut him in two and go between the pieces." - William Sturgis, clipper ship captain, 1830's.