Step 1:
Right-click the element you want to lock in place and click lock /
Step 2:
Click on the layers panel on the right and click lock/unlock
Locking elements when working with multiple elements will make your design process a whole lot smoother, here's how you can do that ↓