I would suggest installing a 30amp receptacle and using a 30amp surge protector.
The adapters that allow you to plug into a lower rated circuit are fine. If you plug your 30amp into a 20amp receptacle using an adapter you have a shore cord rated for 30amps protected by a 20amp breaker. No problem.
When you go the other way it can be hazardous. If you use an adapter to accommodate plugging your 30amp shore power into a 50amp circuit you have a shower cord rated for 30amps "protected" by a 50 amp breaker. Not effective protection.....