In this case, the defense against trespassing isn’t ignorance of the law, but rather ignorance of the fact that they weren’t permitted to be where they were. And that is a legally valid potential defense.
To the extent that that might be true it seems that they had no reason to believe they were trespassing.