If necessary, please come and visit.

Literal

Necessary case [in-には] visiting come [command-いらっしゃい].

いらっしゃい is the imperative of いらっしゃる (honorific 行く/来る/いる), used here as a welcoming invitation rather than a command. 必要な場合には sets the condition.