If it does, then it is the expected behaviour. Even when set in Domino Administrator it will give an error to when said database is already over the quota. You need to have the size reduced (delete / archive documents and do compact) before you can set the quota.