Just to confirm, my understanding is that there is no limitation on using a single device to sign in to two different accounts, just that the second account should not obtain referral bonuses for the first account.
The game specifically says that the purpose of the 'Log Out' button is to be able to log in with a different account. So there's no restriction on using the same device for two (or more accounts).