To dream that someone is playing a prank on you suggests that someone is undermining your ability. Your character is being called to question.

To dream that you are playing a prank on someone indicates that you need to start taking things more seriously. Stop looking at things as a joke.