What is the meaning of [don’t put the cart before the horse]

It is important to do things in the right or natural order; also used when people confuse cause and effect