In a tournament, 22 is a fold for me from all early positions, unless you are a big stack looking to apply pressure. Same with pocket pairs 33-66. If it folds to you in the hijack, cutoff or later, I think a raise is standard. And in the blinds it is an easy call to try and flop a set. If you get re-raised preflop though, you can be in a bad spot and will likely have to fold unless you know your opponent is loose. Also, raising first in with this hand, it can be tough to play if you do not hit your set.
In a cash game, players are generally more loose, so I might open my range a bit more and play this hand and other small pocket pairs from early positions, especially in a 6-max. Just try and have a strategy planned for playing these
hands post-flop. If you don't hit a set, will you continue pressure with a c-bet? What do you plan to do on 4th and 5th street if your opponent calls you down? Or will you check fold and move onto the next hand? Having a strategy before you play will help you be better prepared when the time comes.
Hope this helps!