Can you eat alligator?
Yes you can and it is. Google 'menu alligator' and you will find plenty of restaurants that actually have it on the menu, like this one, this one or this one.

I doubt that a restaurant would (be allowed to) have it on the menu if it's unsafe to eat.