Restrict Date Range User Filter ( not to choose Future Date in TO)

Certified Senior Developer

IN Date Range User Filter 

I have to restrict user not to select any Future date in To Date 

  Discussion posts and replies are publicly visible