There is nothing you can do to guarantee this will never happen to you again. Mistakes will always happen.
I have heard of travelers recommending bringing a printout of consular website rules/email you received from them. It could help although it is not fail proof.
Make sure you do get your €600 compensation for this incident.