How to Get Children to Listen to You

When I tell my son to do something, he likes to do the opposite.

So now I just tell him the opposite of what I want so he does what I want.

But sometimes I forget.

Anyone know how to get your kid to do what you say without backtalk or delay?