The way the lever is designed on the 92 creates more of a tendency to do this than, say the S&W third gens (5906, etc). The way the leg sits, and the way the slide is shaped doesn't help the issue.
It can be trained out. There are several methods to it. Grasping the slide at the switch so you're actually using the switch to help pull the slide back and when you do so, you have to put some up-force on the switch at the same time, works. Trying to avoid the switch all together is hard, as there's not much real estate on the slide you can use. So if you actually position your hand so you use the switch in a way that you are preventing the inadvertent switching is one way to go. Another is to "karate chop" the breech face through the ejection area. I've seen the Marines train that, but I wouldn't try it without some good gloves. That breech face is sharp and it will indeed tear your hand up if you try it bare handed.
Another procedure is to switch it off every time you draw, or reload.
Another option is a 92G, which is the same gun with a decock-only switch that springs back into the fire position and eliminates this all together. I believe Wilson offers a G conversion, but I don't know anything about it.