I have never had trouble going into the UK, but my husband has been intensely questioned coming into the US. He travelled the most though, so that's probably why I was never questioned. I can't really tell you what they can do legally, but I know its up to the immigration/customs officer.
Good luck.