Infinite dimensional Chevalley groups and Kac--Moody groups over $\mathbb{Z}$