How do I know if removing a wall will compromise structural integrity?

How do I know if removing a wall will compromise structural integrity?