To realize = to come to the conclusion with your own reasoning
You realize it was a mistake if you use independent thinking no matter who gave you facts that helped build the conclusion
Aware = known
You may know it was a mistake because someone explained why it was a mistake
Of course:
After you have realized the mistake, you will also know it is a mistake.