This is defensive behavior not aggressive behavior. Instinctively they know they are prey for bigger animals, lizards, and birds. To them, you are a great big Godzilla monster that will gobble them up.
Just handle them gently and carefully, and if you do pick them up or interact with them, don't put them down or go away when they strike out as that teaches them that striking gets them what they want, which is to be left alone. Eventually they figure out that you are not a threat, striking doesn't work, and the behavior stops.