How do I know if he’s genuine and avoid getting too attached?

I’ve been seeing this guy for like 3 months now. I like him and he’s super sweet to me. He wants to hang out and do things and have sleep overs he buys me gifts and pays for my gas he’s super sweet. But I have issues trusting people and I get attached really fast. I don’t want to end up hurt in this situation and I wanna stay strong and not get so attached to him. How can I do that? We also come from different cloths and I don't know if this is something that can be long term but I don’t want to end it with him I wanna stay strong and be able to enjoy but not get extremely attached.
How do I know if he’s genuine and avoid getting too attached?
Post Opinion