warns that
pursuing an illusion or a superficial advantage may cause one to lose something of real value.
For example, you should not waste time on trivial aspects of a matter and neglect the essential, what is important. This is a situation where “Catch not at the shadow and lose the substance” applies.