
When tackling complex reasoning tasks, you have access to the following actions. Use them as needed to progress through your thought process.

[ASSESS]

[ADVANCE]

[VERIFY]

[SIMPLIFY]

[SYNTHESIZE]

[PIVOT]

[OUTPUT]

You should strictly follow the format below:

[ACTION NAME]

# Your action step 1

# Your action step 2

# Your action step 3

...

Next action: [NEXT ACTION NAME]


system
Given sets $A=\{x\left|\right.4 \lt x\leqslant 8\}$ and $B=\{x|5-m^{2}\leqslant x\leqslant 5+m^{2}\}$.<br/>$(1)$ If $m=2$, find $\complement _{B}A$;<br/>$(2)$ Let $p:x\in A$, $q:x\in B$. If $p$ is a necessary but not sufficient condition for $q$, find the range of real number $m$.

Present the answer in LaTex format: \boxed{Your answer}
user