I think it is not a good idea to plug a lower gauge extension cord (the 30A you have) into a higher amp outlet (50A). The only thing that would make it safe is if the breaker at the main box is 30A on that line. Gauge sizes should always be equal to or greater than the compatible amperage, and...