I don't think it will illegal.
depending on where you live, in my country they 'government' gamble with bitcoin it is illegal and unlawful. But do not worry that many countries are offering bitcoin bets and their governments legalize bitcoin bets and can be used for betting.