What did Jesus mean by “whatever you bind on earth will be bound in heaven, and whatever you loose on earth will be loosed in heaven” Matthew 18:18

Ok, I have bound and loose backwards. To bind or be bound is a punishment or a curse for some sin that is not forgiven. To loose is to be forgiven or free from punishment. Jesus is building his church on His Rock, Peter by giving him the keys to the entrance to heaven. Those that are not forgiven and bound on earth and not part of the church will likewise be bound in heaven and not part of the Kingdom in heaven while those that are loosed or forgiven on earth will be loosed is heaven and part of the Kingdom.