Correct

地下 (dì xià) vs 地下 (dì xia)

/ dìxià vs dìxia / 
Strokes

Definition

地下 (dì xià) is a Noun, which means “underground”;

地下 (dì xia) is the noun plus a noun of locality, meaning “on the ground”.

Example

地下 (dì xià), a noun, means "underground"; figuratively it means "some secret, hidden activity".
The usage in example ① is the original meaning, and that of ② and ③ are figurative meaning.
1
Zhège
这个
jiànzhù
建筑
dìshang
地上
bā
八
céng
层
  
,
dìxià
地下
liǎng
两
céng
层
  
。

There are eight stories above the ground and two under the ground of the building.

2
Zhànzhēng
战争
shíqī
时期
tā
他
zēng
曾
cóngshì
从事
guò
过
dìxià
地下
gōngzuò
工作
  
。

He once worked as a spy in the wartime.

3
Ànfā
案发
hòu
后
  
,
tā
她
zhuǎnrù
转入
dìxià
地下
  
。

After the accident, her activities became secret.

地下 (dì xia) is the noun 地 plus a noun of locality, meaning "on the ground (also 地上 (dì shang) meaning, having the same).
4
Yǎnjìng
眼镜
diào
掉
zài
在
dìxia
地下
  
(
dìshang
地上
  
)
le
了
  
。

The glasses fell on the floor.

5
Dìshang
地上
  
(
dìxia
地下
  
)
shì
是
shénme
什么
dōngxī
东西
  
?
Bàn
绊
le
了
wǒ
我
yī
一
xià
下
  
。

What's on the floor? I stumbled over it.