Use a move like Ice Fang to freeze it, then slowly wear it down. A max-level Gyarados can survive most of its moves once, so there's a chance you can pull it off.This is the strategy I used to beat it.