I've been out of the game a little while (It's been a couple years since the last time I reviewed an application) but I think a 507 is solid.
The thing is, if you want to retake, you REALLY need to be sure you'll do better, and it's already halfwayish through July. I'd just see how things go and start studying hard for a retake now. If this cycle doesn't go well you can take it before next cycle and crush it.
Or just say screw it. I know lots of doctors who didn't score as well as that who are relatively young.
I think the only bad idea is rushing a retake because then your score might drop and it makes you look worse.