well yes this mistake may cost you your PR. So as others said, you will need a lawyer.
Mistakes made:
Going to your original embassy. Embassy ground is generally considered extension of your country of origin.
If you do not know it (and it seems you do not), one of the function of a passport is...