This is an act that is clearly "non-basketball" and severely endangers the safety of the opponent. I agree that it's unacceptable conduct and warrants a flagrant technical foul.
Now, would I have the chutzpah to do this (correctly, as I sit here in abstract judgement) in a game? I'm skeptical.