I have no doubt it was considerably illegal, however I would have been terminated immediately in a town where finding another job without a vehicle or parents would have been impossible, and since I was living on my own as a minor at this time it was pretty important that I maintained income.
After several more undoubtedly illegal maneuvers by a new manager to fire me and other waitstaff so that he could replace them with random girls he wanted to work for him so he could hit on them, being taken off payroll without clearing it with the senior manager, and afterwards being reduced to a single day a week on the slowest days, I quit.
I then had to leave the place I was living at two months later to a brand new city, contracted mononucleosis, and, not having any saved up money after quitting this job and unable to work due to being bedridden for 4-5 months, basically starved myself into extreme malnutrition other than the food I could steal and scavenge, surfing from couch to couch. So, essentially my worst fears about quitting my job over illegal practices were realized.
I could also tell you stories from other jobs about bosses pulling firearms on me, commanding me to do straight up illegal things like lie to the police, illegally withholding paychecks for entire staff for months at a time, illegal unpaid overtime, slashing wages between paychecks, working me into extreme injury from RSI and then subverting my ability to collect comp, firing me over "clerical errors" for trying to cancel a shift I didn't even mean to sign up for on a stupid new workforce app after my boss explicitly lying about my employment not being in jeopardy, etc, and all of the hardships I had to endure for leaving each of these jobs at my breaking point.