When it comes to professional references, it is always best to err on the side of caution. You don't want to give a reference that could potentially damage your professional reputation or even cost you your job.
That being said, there are some general guidelines you can follow when choosing who to ask for a professional reference. First, try to choose someone who is in a position of authority and who can speak to your work ethic and skills. Second, choose someone who you have worked with closely and who you know will be able to give a positive reference. Finally, make sure to ask the person if they are comfortable serving as a reference before you provide their contact information to anyone.