Process is aborted (core dumped) when axis is a large negative integer when calling tf.gather 
Hi **@drewshark**,
Sorry for the delay, Here you have set the axis parameter to a constant value with a very large negative number (-9223372036854775808). The axis parameter should be a valid integer corresponding to the axis along which you want to perform the gather operation. If you want to gather elements along a specific axis, you should provide the correct axis number. I provided a [gist](https://colab.research.google.com/gist/Venkat6871/1afd6525e878c5d84b8b1821a652861e/62603_2-14_nightly-v.ipynb) for reference.

Thank you! Hi @Venkat6871 

If tf.gather is not expected to accept axis to be a large negative number. It would be much helpful if it can throw a proper error message indicating the incorrect usage of this function. However, currently, this function call will directly lead to a program abort, which will directly kill my process. The current behavior seems dangerous.

### Issue type

Bug

### Have you reproduced the bug with TensorFlow Nightly?

Yes

### Source

source

### TensorFlow version

2.16.0

### Custom code

Yes

### OS platform and distribution

_No response_

### Mobile device

_No response_

### Python version

_No response_

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

I am actually using 2.10.0 but I find this issue insists in 2.16.0-dev20231209 (tf-nightly). Here is the code to reproduce:

```
import tensorflow as tf
params = tf.constant([[0.69]])
indices = tf.constant([16])
axis = tf.constant(-9223372036854775808, dtype='int64')
tf.gather(params,indices,axis=axis)
```

The process will directly be killed by the system when running above code.

Here is the related output:

```
2023-12-09 22:48:16.035701: F ./tensorflow/core/framework/tensor.h:832] Check failed: new_num_elements == NumElements() (0 vs. 1)
Aborted (core dumped)
```

### Standalone code to reproduce the issue

```shell
import tensorflow as tf
params = tf.constant([[0.69]])
indices = tf.constant([16])
axis = tf.constant(-9223372036854775808, dtype='int64')
tf.gather(params,indices,axis=axis)
```


### Relevant log output

_No response_