put the cart before the horse

Upper Intermediate (B2) informal

Do things in the wrong sequence.

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