What law could prevent it? I’m a dual citizen. Two passports. The US government has no way of knowing that fact.
I thought until the last 50 years or so that you were not allowed to have dual citizenship? Most countries follow that some still do.