Phrases of the form "if you must ... " (or indeed "if you must!" without a following verb) are a particular idiom in English.
It uses "must" in the sense of obligation, but the idiomatic part is that it is implying "you think you must do this, but I don't agree, and I'm going to provide or permit whatever you are asking, but grudgingly".