put the cart before the horse

Intermedio alto (B2) informal

Do things in the wrong sequence.

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