The punctuation perhaps makes it a little hard to decipher for a learner. How about: "Always be yourself -- unless, that is, you can be a unicorn. If you can, then be a unicorn."
It's really a play on two different senses of "to be." The same joke exists in the unfunny retort to "Just be yourself": "I couldn't be anybody else, now could I?