put the cart before the horse

Intermédiaire supérieur (B2)informal

Do things in the wrong sequence.

"Designing the marketing campaign before finishing the product is putting the cart before the horse."