Some people call it "locking in your gains". I call it "minimizing your returns".
Gambling is a word used to describe anything beyond your own acceptable risk tolerance.
gambling - where the odds are against you
investing - where the odds are in your favor