Fear of cheating

I saw a post today about how if you don't love a woman right she'll find someone who will. I am dead set against cheating PERIOD no buts ifs or ands it's wrong. Problem is my husband has been so damn neglectful lately I felt special when this dude at the store started flirting. All I could think was "damn that's nice!". Has anyone else had this problem? Where you think "he'll treat me better" and the temptation is strong?