You're not at fault
They're being weird and disgusting - was this in school? Those girls are being hypocrites with that sort of attitude tbh. You should tell the teacher/somebody about this because that behaviour is pathetic from everyone around you. Regardless of whether you're muslim or not - crushes are absolutely normal, this situation has no relevance to that and anybody would feel uncomfortable with the treatment you received, you did right to leave.
I'm sorry to hear that you went through this and I hope you feel better soon