You can do it by using the following command:
val sc = new SparkContext(new SparkConf())
./bin/spark-submit <all your existing options> --spark.streaming.kafka.maxRatePerPartition= <max rate>
This will restrict the reading rate to the rate set for this property.