You won't break any laws if you use the generator. On the contrary, you can use it to protect your data, free yourself from endless spam messages from advertisers and register on websites without giving your actual number.