Add warning if beta or theta is in illegal region.