There is no cheat that literally "ends the world" in GTA San Andreas. However, certain cheat codes create enough mayhem to make the game feel broken or "ended" in terms of intended difficulty and progression.
Use cheats for a separate "mess around" save if you must. For your main playthrough, experience San Andreas as Rockstar intended: a gradual rise from Grove Street to king of Los Santos.