By rule it's a tech in NCAA-M:
Rule 10-6-1f. Grasping either basket in an excessive, emphatic manner during the officials' jurisdiction when the player is not, in the judgment of an official, trying to prevent an obvious injury to self or others.
For NFHS:
Rule 10-3 ART. 3
Grasp either basket at any time during the game except to prevent injury; dunk or stuff, or attempt to dunk or stuff a dead ball.