No, it's not illegal to gamble with a VPN. By using a VPN to access gambling sites, you are simply protecting your online traffic from being tracked and ensuring that your personal information is kept secure.
Yes, there's a slight chance that PokerStars will detect your VPN activity. In this case, your account might get frozen or banned.