This was the issue that prompted quantum mechanics. The electron doesn’t travel the same path as a tiny dot. Its movement is intrinsically wavelike and all states that it can have within the atom are waveforms of some kind or different. Similar to other standing wave, these have clearly defined frequencies and wavelengths and wavelengths. There isn’t a state where an electron is that is located inside the nucleus. Such a state would be so full of energy that it would quit the electron!