If I'm doing adjustments or setting up connections for troubleshooting, I'll just unplug so it's a no-brainer. If I'm actively probing around while it's on, I just be mindful of my body and hands/tools at all times. It's very easy when your head's upside-down and backwards inside these games to accidentally bump into something or drop a tool or do something else stupid.
Be mindful too that depending on the game, the direct line voltage from the wall could be snaking throughout the game (and not necessarily all localized to one area like near the transformer).