If the monster has a single-target melee attack, it will simply move toward the nearest hex adjacent to its focus to attack.
If the monster has a single-target ranged attack, it will simply move toward the nearest hex to be in range of its focus to attack.
It won't move closer than it needs to in order to be in range.