VPNs are totally legal in Germany, and thus you will have no problems or risks using a VPN and changing your IP to a German one. Obviously, you could still get in trouble in your own nation, but you won't have any issues with German laws and regulations regarding IP changing.