I've seen wild snappers do this. It may well be a response to the heat, but he may also be trying to set himself up for ambushing fish, much as alligator snappers and softshells do.