The spell shouldn't cast if you're out of range, one would get the message "The target is too far away."