This sentence means that you can entertain yourself before entertaining others.
We only have one chance to live, so please entertain yourself before others. In fact, no matter how many people you love, no matter how happy and painful you love, in the end you have not learned how to love, but how to love yourself.