Arduino keeps turning off when ever my ground and 5v is on

Adding to @LarryD's reply

Or a Mega or a Leonardo. The only one that I'm aware of (there might be more) where it's safe to do so is the Nano.