Except as provided in section
5243, all distilled spirits sold by order of court, or under process of distraint, shall be sold subject to tax; and the purchaser shall immediately, and before he takes possession of said spirits, pay the tax thereon, pursuant to the applicable provisions of this chapter and in accordance with regulations to be prescribed by the Secretary.