They are telling you the wrong thing.
You want the first ones:
know that if ...
was that if she ...
told me that if there ...
If there were truly a parenthetical remark after that, you could
put commas around it, but it's hard to imagine how that would come
up. Maybe, in spite of its...