Eventstore client for NodeJs(@eventstore/db-client) stops the execution when ‘maxCount’ for reading the events from stream is increased more than 20

The program run fines when I have the following configuration:

let events = eventstoreClient.readStream(
       streamName,
       {
         fromRevision: END,
         direction: BACKWARDS,
         maxCount: 20
       }
     );

However, the program stucks(i.e. could not read the streams/events further) when maxCount is set to 100 or 1000 or maxCount option is not supplied!