My neighbors had bed bugs and had to throw away their mattress. How do I prevent them from getting in mine?

My neighbors across the hall had bed bugs and I saw them dragging out their mattress to be thrown away because the bed bugs had colonized inside the mattress. How do I prevent them from getting inside my mattress or box spring?? My mattress cost me about $1,500 and I really don’t want to face the thought of disposing it.