means that
one should try to turn an unfortunate situation into something useful or positive rather than focus solely on the setback.
For example, people should do their best, whatever the situation is; They should make the most of opportunities as they come This is a situation where “If life hands you lemons, make lemnonade” applies.