Ion acceleration by beating electrostatic waves: Domain of allowed acceleration