There aren’t laws saying bathrooms must be used by a certain gender, so don’t worry about it. If it’s at school where you have to use one or risk getting in trouble, talk to your principal, counselor, vice principal or whatever and explain why it makes you uncomfortable. If they are respectable people, they should figure out something to help, even if it’s not ideal