It is not illegal to use a VPN for Amazon Prime but the IPs are restricted for a reason and as a user, we have to obey it. The content licenses are valid for certain countries and they are only available in those countries.