There are a couple different things you can do to stay safe while diving.
First, always use a dive flag when diving in an area where there are other boats. This will help other boats know where you are and help them avoid running into you. Second, always check the depth of the water before diving in. You don’t want to dive deeper than your guide or instructor. Finally, always have a buddy with you when diving. This way, if something happens, you have someone there to help you.