It's not just law, but also against UE4 EULA, as one of restrictions states:
"for any gambling-related activities or Products (as defined by law in the jurisdiction of use)"
So if law see you game as gambling you can not use UE4 for that