It is not necessarily bad if your gerbil squeaks when you try to pick it up. Several explanations exist:
Fear or stress. Gerbils are prey animals and may squeak if startled or uncomfortable with handling.
Pain or discomfort. Check that you are supporting its body correctly and not pinching it.
Communication. Squeaking can express excitement, contentment, or curiosity.
Territorial behavior. The gerbil may be defending its cage or space.
Habituation. Some gerbils simply dislike being handled and squeak to express displeasure.
To reduce squeaking, build trust gradually, use a cupping motion to support the whole body, move gently and slowly, and reward calm behavior with a small treat. If you suspect pain, consult a veterinarian.