Putting the cart before the horse.

本末倒置。