You can only legally gamble online in Singapore at the Singapore Pools, where you can bet on sports (like horse racing) and play lotteries.
In general, using a VPN for sports betting and gambling is legal if such an activity is allowed in your country or state. At the same time, the legality of online casinos and lotteries varies, as every country has its own laws and regulations in this regard.