Police foils illegal