You want to use a 30 amp cord plugged into a 30 amp outlet to power a 50 amp camper? If so that is safe but you've reduced your available amperage by 2/3.
Cedar Creek Lake, Texas
2019 Loredo 290 SRL
2019 Ram 2500, 4x4, Cummins diesel