There's no point in crying over spilt milk, as the saying goes.
What's done is done.
You did nothing all that wrong - you just demonstrated naievity. That's something to learn from, not something to feel terrible about.
We all make mistakes. The trick is to try to learn from them.
So pick yourself up, dust yourself down, and step out into the sunshine with your head hight!