I pray that you soon get all that you deserve and I hope you take care that you deserve only all that is good.
Note the word "I" interjected between "and" and "hope". The speaker says two things:
1. I pray that that you get what you deserve.
2. I hope that you behave in a way that will make you deserve only good things.
If the addressee were to behave badly, they would deserve bad things. Then the speaker's prayers would work against the addressee.
Student or Learner