Father Gabriel does not die the same way in the TV show as he does in the comics. In the comic version, he is attacked by Beta during the Whisperers conflict, falls, gets his ankle badly injured, is stabbed in the gut, and is then overrun and eaten by walkers.

In the comics

Gabriel’s comic-book death is especially brutal: he ends up helpless after a fall, Beta stabs him, and the walkers finish him off.

In the TV series

The TV show takes a different path, so comic details do not automatically match the on-screen story.

If you want, I can also explain whether Gabriel dies in the TV show or give you a spoiler-free answer.