I think it's highly unlikely that Tom was not aware that he wouldn't be allowed to enter the museum without his parents.
Mi kredas ke ege malverŝajnas, ke Tom ne konsciis, ke li ne rajtas eniri en la muzeon sen siaj gepatroj.