No person, who has after written notice failed or refused to do his work or pay the amount assessed against him in lieu of such work upon the community ditch or acequia, shall be allowed to take or use any water from such community ditch or acequia or lateral thereof, while in default in such payment or failure to do such work.