Not your fault but another lesson here is lying to border guards is ok if they say it is.
Which proves how much theater there is in security and that laws are not there to be blindly followed, but to enable the state to pursue its perceived enemies