My 2003 head light gasket is not seated correctly. How do I fix it?

The gasket surrounding the front headlight is not seated properly around it. How do I go about removing the gasket and then replacing it correctly around the headlight? If I just leave it will it cause rusting around the back side of the light fixture?

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0