What does this quote mean : The walls of the condominium are supposed to bring protection, but ask yourself whether you are in prison

Walls protect a person, but also shut other people out.

Condominiums are noted for enforcing many rules on their members -- rules about curtains, plantings, and painting.