Double jeopardy may be raised at any time, but only once, and shall be tried by the court alone. If raised during the trial, a hearing thereon may be deferred until the end of the trial.