Setting Wrong Boundaries?

Can you set boundaries with people for the wrong reasons?

Example: setting boundaries for very selfish and self serving reasons, like not wanting to deal with something or the like. Setting boundaries that are based on lack of personal growth for yourself, etc.

How do you discover this and what kind of questions or models can you do to determine this. Thanks for you help!