1. Don't pull my leg.

2. Don't tease me.
3. Don't kid me.
4. Don't play a trick on me.
5. Don't play tricks/jokes/pranks
on me.
6. Don't play a joke on me.
7. Don't play a prank on me.
--------------------------
Are they all the same in meaning?
From #4 to #7, do we have to use plural forms or singular forms?

Not quite all have the same meaning. I'd group them like this:

1, 4, 5, 6, and 7 -- playing tricks on others

2 and 3 -- teasing

1. "Don't pull my leg."

2. "Don't tease me."
3. "Don't kid me."
4. "Don't play a trick on me."
5. "Don't play tricks/jokes/pranks on me."
6. "Don't play a joke on me."
7. "Don't play a prank on me."

All of these expressions have similar meanings and convey the idea of not wanting someone to deceive, mock, or joke with you in a playful or mischievous way. However, there are slight nuances in each phrase.

1. "Don't pull my leg." This idiomatic phrase means "don't fool or deceive me" and is typically used in a light-hearted manner. It implies that someone is trying to make you believe something that is not true.

2. "Don't tease me." This means "don't mock or make fun of me" and can be used in various contexts. It suggests that someone is intentionally causing you emotional discomfort or embarrassment by making fun of you.

3. "Don't kid me." This is an informal way of saying "don't deceive or trick me" and implies that someone is pretending or joking about something, but you want them to be sincere with you.

4. "Don't play a trick on me." This means "don't prank or deceive me" and suggests that someone is planning to trick you or play a practical joke on you.

5. "Don't play tricks/jokes/pranks on me." These variants generally have the same meaning, indicating that you do not want someone to engage in playful or deceptive actions towards you. The plural forms "tricks," "jokes," and "pranks" imply multiple instances or different types of deceptive behavior.

6. "Don't play a joke on me." Similar to #4, this expression indicates that you do not want someone to play a joke or engage in deceptive behavior towards you. The singular form "a joke" suggests a specific instance of deception.

7. "Don't play a prank on me." This is another way of expressing the same idea as #4 and #6, but specifically using the term "prank." It implies that someone is planning to play a mischievous or practical joke on you.

Regarding your second question, both singular and plural forms can be used. It depends on the context and personal preference. The plural forms (#5) imply a broader range of actions, while the singular forms (#4, #6, and #7) focus on a specific instance or type of deceptive behavior.