Reptiles close their eyes like this when they feel like they are in danger. They’re protecting their eyes from an attack. Opening it’s mouth like this is a threat, like a dog showing it’s teeth. If your lizard closes it’s eyes when you touch it’s head, it doesn’t like it and is telling you as best it can that it wants you to stop.
^^^^^^^^^^^^^^^^^^