What do you do if you can't be myself in front of your crush?

Gain confidence? Get to know them better by interacting with them more, maybe you'll feel more comfortable over time