It is if you get caught, because it's considered "cruelty to animals." It isn't actually wrong tho, because alligators are quite large and the amount of alcohol necessary to hurt them is also quite large. So giving beer to a gator wouldn't actually hurt it.