MathF.Clamp affecting enemies behavior problem!

Hi there,
I have some sort of an annoying bug with the Mathf.clamp method. for some reason it is affecting also the behavior of the enemies and doesn’t let them go out of the screen although it is attached only to the player prefab! I tried to change all the variables from vector2 to vector3 but it didn’t solve the problem.
here is my code, it will be nice to get some help with that:

Privacy & Terms