I don't remember this ever happening to me but if my opponent is ever kind enough to tell me when I am about to foul, I think I will do one of two things:
If I think that I reasonably might have ended up noticing by myself, I would simply thank him for the generous display of sportsmanship, and...