put the cart before the horse

Obere Mittelstufe (B2) informal

Do things in the wrong sequence.

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