I don't think it will illegal.
It depends on which country you are in. It is a case to case basis. 1 talked to one of the members here in bitcointalk.org and he says that Bitcoin is fine in his Southeast Asian Country but if they found out that you're Bitcoin came from winnings in gambling they will deactivate your soft wallet. They say it is part money laundering.