I am so sorry that happened to you Trance.
I was previously married to a uk citizen, but we were officially separated over 3 years ago and completely dunzo about 2 years ago..( The divorce just went through today, actually..YAY! We are both the types who procrastinate about any sort of paperwork. Anyway, that's another story...sorry..).
During the year of our trial separation I came to the UK five times to visit him, and every time I was oblivious to the fact that my admission to the country could possibly be denied! Ah, ignorance was bliss. I was always truthful about the fact that I was there to see my husband, and one time I didn't even have any proof of my return ticket.( My printer had broken a few days before and I didn't even attempt to print it elsewhere...like i said ...ignorance ) That particular time, I was dealing with an IO at Gatwick whose line I had been through on my previous visit, and maybe the fact that I pointed this out to her made her ease up on me? I don't know. I got momentarily freaked out by all of her questions, and when asked where I worked I stated the name of my previous employer instead of my current one. I probably should have been bumped for that.
Now that I know the score, I get sooooo nervous when I go over.
I guess it can just go either way? Some get lucky and some don't, and my heart definitely goes out to the latter.