If you go to a con by yourself, be safe. Use common sense and if someone is making you uncomfortable, go inform the con staff. I've gone to cons by myself, but that wasn't until I'd been going to cons for years and developed my own routine (plus I cosplay). If you're not that social, try to bring at least one friend with you so you don't get bored, like DX said.
What con are you attending?