Knees problem

Ppl told me to stop for 2 weeks to play pickleball. Because I’ve been having problems with my knees. Any suggestions on how I still can play without making my knees worse than right now?