The court may require any party to give security for costs at any stage of the cause and upon filing an appeal.